fixed tmux

This commit is contained in:
L. Kraven
2024-06-15 15:40:30 -07:00
parent 37cf1d8893
commit cd920b049f
2 changed files with 22 additions and 3 deletions

8
.zshrc
View File

@@ -7,7 +7,7 @@ fi
# Set ZINIT Home
ZINIT_HOME="${HOME}/.config/zinit/zinit.git"
ZSH_TMUX_AUTOSTART=true
# ZSH_TMUX_AUTOSTART=true
# Download ZINIT
if [ ! -f "${ZINIT_HOME}/zinit.zsh" ]; then
@@ -24,7 +24,9 @@ if [ ! -d "${TMUX_HOME}/plugins/tpm" ]; then
git clone https://github.com/tmux-plugins/tpm $TMUX_HOME/plugins/tpm
fi
tmux source ${TMUX_HOME}/tmux.conf
if { [ "$TERM" = "screen" ] && [ -n "$TMUX" ]; } then
tmux source ${TMUX_HOME}/tmux.conf
fi
#extend path
path=(~/bin $path)
@@ -41,7 +43,7 @@ zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-autosuggestions
zinit snippet OMZP::tmux
# zinit snippet OMZP::tmux
# Load completions
autoload -U compinit && compinit