diff options
author | katherine <shmibs@shmibbles.me> | 2016-01-22 05:24:38 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2016-01-22 05:24:38 -0700 |
commit | 8254675dff09cbcf45555136f775a893fe6846a2 (patch) | |
tree | 35ed7b86d170126fa48bcdbb5b3d6ae57ef1f962 /.zshrc-remote | |
parent | 52850cd050a543c5a00eadeec70ed385f9176d98 (diff) | |
parent | 263e556e523ca5817efa4f717d532a5cc1035a5e (diff) | |
download | dotfiles-8254675dff09cbcf45555136f775a893fe6846a2.tar.gz |
Merge branch 'master' of github.com:shmibs/dotfiles
Diffstat (limited to '.zshrc-remote')
-rw-r--r-- | .zshrc-remote | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/.zshrc-remote b/.zshrc-remote deleted file mode 100644 index 98ac9d6..0000000 --- a/.zshrc-remote +++ /dev/null @@ -1,59 +0,0 @@ -if [[ $TERM != "screen" ]]; then - tmux has-session 2>/dev/null - if [[ "$?" != "0" ]]; then - tmux - fi - - tmux has-session 2>/dev/null - if [[ "$?" != "0" ]]; then - logout - fi - - { - while true; do - tmux has-session 2>/dev/null - if [[ "$?" != "0" ]]; then - logout - fi - - echo "" - tmux list-sessions - - echo -n "> " - read -A args - case "${args[1]}" in - a) - if [[ "${args[2]}" != "" ]]; then - tmux has-session -t "${args[2]}" - if [[ "$?" == "0" ]]; then - tmux attach-session -t "${args[2]}" - fi - fi - ;; - - k) - if [[ "${args[2]}" != "" ]]; then - tmux has-session -t "${args[2]}" - if [[ "$?" == "0" ]]; then - tmux kill-session -t "${args[2]}" - fi - fi - ;; - - n) - tmux new-session - ;; - - q) - break; - ;; - - *) - ;; - esac - - done - } - - logout -fi |