Created
October 19, 2011 00:48
-
-
Save geta6/1297204 to your computer and use it in GitHub Desktop.
screen x zsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preexec () { | |
if [ ${WINDOW} ]; then | |
echo -ne "\ek${1%% *}\e\\" | |
fi | |
} | |
if [ ! ${WINDOW} ]; then | |
cd $HOME/Library/Rcfiles/; git pull &; cd | |
case "${HOST}" in | |
GtxAir* ) | |
alias s="ssh geta6.net" | |
;; | |
* ) | |
alias s="screen -D -RR" | |
[ ${STY} ] || screen -rx || screen -D -RR | |
;; | |
esac | |
else | |
alias s="screen -d" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment