1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-14 15:51:30 +01:00
dotfiles/extras/zprofile_chapek.zsh
bretello 7efeedf6d9
add extras folder
just miscellaneous script/configs that could be useful
2023-09-15 00:35:36 +02:00

19 lines
432 B
Bash

# Make sure SSH_AUTH_sock is symlinked
if test "$SSH_AUTH_SOCK" ; then
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
fi
#_tmux_sourced=1 exec tmux
if [[ -z $TMUX ]] && [[ -n $SSH_TTY ]]; then
set -x
session=tmux
if tmux has-session -t "$session" 2>/dev/null; then
exec tmux attach-session -t "$session"
else
tmux new-session -s "$session"
exec tmux attach-session -t "$session"
fi
fi