Skip to content

Instantly share code, notes, and snippets.

View lanox's full-sized avatar
👽
cruising around the universe looking for aliens

lanop lanox

👽
cruising around the universe looking for aliens
View GitHub Profile
@lanox
lanox / bash
Created January 24, 2020 09:57
tm-switch.sh
script_dir="$HOME/dotfiles/iterm/themes/base16"
for script in $script_dir/base16-*.sh; do
script_name="$(basename $script .sh)"
theme=${script_name#*-} # remove base16-
# variation=${theme#*.}
theme=${theme%.*}
${script_name}() {
parts=("${(@s/_/)0}") # Removed brackets around base16-atelier-estuary