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