make tmux attach to existing session on login
This commit is contained in:
parent
9ac6b5d14c
commit
29b15cdb41
@ -10,6 +10,6 @@ export PATH="$PATH":$HOME/.local/bin
|
||||
alias ls='ls -AFh --color'
|
||||
alias vim=nvim
|
||||
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
||||
tmux && exit
|
||||
tmux new-session -A && exit
|
||||
fi
|
||||
neofetch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user