From b71ccdf1f4cd28335ed7afcc9b571a407e9e6230 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 17 Oct 2016 20:51:20 +1100 Subject: [PATCH] Initial commit - just a zsh startup file for setting up iTerm2 integration --- .stow-rename | 1 + config/zsh/interactive/iterm2 | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .stow-rename create mode 100644 config/zsh/interactive/iterm2 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)