commit b71ccdf1f4cd28335ed7afcc9b571a407e9e6230 Author: Danielle McLean Date: Mon Oct 17 20:51:20 2016 +1100 Initial commit - just a zsh startup file for setting up iTerm2 integration diff --git a/.stow-rename b/.stow-rename new file mode 100644 index 0000000..4376d30 --- /dev/null +++ b/.stow-rename @@ -0,0 +1 @@ +config => .config diff --git a/config/zsh/interactive/iterm2 b/config/zsh/interactive/iterm2 new file mode 100644 index 0000000..5099024 --- /dev/null +++ b/config/zsh/interactive/iterm2 @@ -0,0 +1,12 @@ +#! zsh +ITERM2_DIR=$XDG_CACHE_HOME/zsh/iterm2 +if [[ ! -r $ITERM2_DIR/startup.zsh ]]; then + mkdir -p $ITERM2_DIR/bin + curl -fLo $ITERM2_DIR/startup.zsh https://iterm2.com/misc/zsh_startup.in + for cmd in imgcat it2dl; do + curl -fLo $ITERM2_DIR/bin/$cmd https://iterm2.com/$cmd + chmod u+x $ITERM2_DIR/bin/$cmd + done +fi +source $ITERM2_DIR/startup.zsh +path+=($ITERM2_DIR/bin)