mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-09-04 08:28:44 +00:00
Don't start tmux, just create an alias
This commit is contained in:
+7
-5
@@ -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\""
|
||||
|
||||
Reference in New Issue
Block a user