Initial commit - just a zsh startup file for setting up iTerm2 integration
This commit is contained in:
commit
b71ccdf1f4
2 changed files with 13 additions and 0 deletions
1
.stow-rename
Normal file
1
.stow-rename
Normal file
|
@ -0,0 +1 @@
|
|||
config => .config
|
12
config/zsh/interactive/iterm2
Normal file
12
config/zsh/interactive/iterm2
Normal file
|
@ -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)
|
Loading…
Reference in a new issue