mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-11-24 23:09:46 +01:00
zsh: adding auto tmux on ssh
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user