aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc-remote
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2016-01-14 10:39:53 +0000
committerkatherine <shmibs@shmibbles.me>2016-01-14 10:39:53 +0000
commitf4cb82b99daf3e2f848a504b4acfe809a7ae5970 (patch)
tree74faa090a51ba5cbff3a51560f1d56b7fb7d2ba3 /.zshrc-remote
parentc0255be3de8e984106881ad8955bc14774e4cc21 (diff)
downloaddotfiles-f4cb82b99daf3e2f848a504b4acfe809a7ae5970.tar.gz
remote session with dtach
Diffstat (limited to '.zshrc-remote')
-rw-r--r--.zshrc-remote59
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