ref zshrc

This commit is contained in:
thek4n 2024-11-11 19:40:11 +03:00
parent 9cd5e17a5d
commit 816235e298

View File

@ -4,20 +4,20 @@
if \
[ "$(tty)" != "/dev/tty3" ] && \
command -v tmux &>/dev/null && \
[ -z "$TMUX" ] && \
tmux -N -L "$USER" list-sessions &>/dev/null
[ -z "${TMUX}" ] && \
tmux -N -L "${USER}" list-sessions &>/dev/null
then
exec tmux -N -L "$USER" new-session -A
exec tmux -N -L "${USER}" new-session -A
fi
if [ -f "$ZDOTDIR/sourcer" ]; then
source "$ZDOTDIR/sourcer"
if [ -f "${ZDOTDIR}/sourcer" ]; then
source "${ZDOTDIR}/sourcer"
fi
if \
command -v tmux &>/dev/null && \
[ -n "$TMUX" ] && \
[ -n "$SSH_CLIENT" ]
[ -n "${TMUX}" ] && \
[ -n "${SSH_CLIENT}" ]
then
tmux source-file "$XDG_CONFIG_HOME/tmux/remote.conf"
tmux source-file "${XDG_CONFIG_HOME}/tmux/remote.conf"
fi