tmux only through ssh/mosh
This commit is contained in:
@@ -65,7 +65,8 @@ eval "$(pyenv init - zsh)"
|
|||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
eval "$(zoxide init zsh)"
|
eval "$(zoxide init zsh)"
|
||||||
|
|
||||||
# Attach to or create tmux session 'moshi' if tmux is installed and not already inside tmux
|
|
||||||
if command -v tmux &>/dev/null && [ -z "$TMUX" ]; then
|
if command -v tmux &>/dev/null && [ -z "$TMUX" ]; then
|
||||||
|
if [ -n "$SSH_CONNECTION" ] || [ -n "$MOSH_SOCK" ]; then
|
||||||
tmux new-session -As moshi
|
tmux new-session -As moshi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user