Fixes to precommit hook and reformat some zsh files

This commit is contained in:
Marko Korhonen 2022-10-26 14:13:15 +03:00
parent 3614b66354
commit e85469a11b
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
4 changed files with 19 additions and 19 deletions

View file

@ -1,8 +1,8 @@
# Launch tmux if logging in over ssh
if [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
if tmux has-session -t ssh_tmux 2>/dev/null; then
exec tmux -2 attach-session -t ssh_tmux
else
exec tmux -2 new-session -s ssh_tmux
fi
if tmux has-session -t ssh_tmux 2>/dev/null; then
exec tmux -2 attach-session -t ssh_tmux
else
exec tmux -2 new-session -s ssh_tmux
fi
fi