mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-31 08:27:46 +02:00
zsh: adding auto tmux on ssh
This commit is contained in:
parent
cc77295aaa
commit
672e4a421e
@ -142,4 +142,8 @@ source /usr/share/doc/pkgfile/command-not-found.zsh
|
|||||||
# Load zsh-syntax-highlighting; should be last.
|
# Load zsh-syntax-highlighting; should be last.
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|
||||||
|
|
||||||
|
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||||
|
tmux attack-session -t $USER || tmux new-session -s $USER
|
||||||
|
fi
|
||||||
|
|
||||||
pfetch
|
pfetch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user