mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-22 02:29:57 +01:00
Run command (TMUX) on login via SSH
This commit is contained in:
parent
b9fce71df9
commit
b08e40c082
5
zshrc
5
zshrc
@ -12,6 +12,11 @@ prompt_color2="#000000"
|
||||
# Load zsh settings
|
||||
source "$HOME/.dotfiles/zsh/settings"
|
||||
|
||||
# Run command when connected via SSH
|
||||
if [[ $- =~ i ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_TTY" ]]; then
|
||||
tmux attach-session -t default || tmux new-session -s default
|
||||
fi
|
||||
|
||||
# Define platform
|
||||
platform='Unknown'
|
||||
if [[ $(uname) == 'Linux' ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user