Don't start tmux, just create an alias

This commit is contained in:
Georgi Gardev
2016-09-05 20:34:01 +03:00
parent 47ae0c9e6b
commit 7191c13dab
+7 -5
View File
@@ -3,8 +3,10 @@
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
if [[ "$TERM" != "screen-256color" ]]
then
tmux -2 attach-session -t "default" || tmux -2 new-session -s "default"
exit
fi
# if [[ "$TERM" != "screen-256color" ]]
# then
# tmux -2 attach-session -t "default" || tmux -2 new-session -s "default"
# exit
# fi
alias tm="tmux -2 attach-session -t "default" || tmux -2 new-session -s \"default\""