disable auto tmux

This commit is contained in:
2025-08-02 01:21:23 +01:00
parent 16861d8314
commit a673755bca

View File

@ -55,10 +55,10 @@ command -v starship >/dev/null 2>&1 && eval "$(starship init zsh)"
command -v fastfetch >/dev/null 2>&1 && fastfetch command -v fastfetch >/dev/null 2>&1 && fastfetch
# automatically enter a tmux session # automatically enter a tmux session
tmux start-server # tmux start-server
if [ -z "$TMUX" ]; then # if [ -z "$TMUX" ]; then
tmux has-session -t dev 2> /dev/null && tmux new-session || tmux new-session -s dev # tmux has-session -t dev 2> /dev/null && tmux new-session || tmux new-session -s dev
fi # fi
# load kitty shell integrations # load kitty shell integrations
if test -n "$KITTY_INSTALLATION_DIR"; then if test -n "$KITTY_INSTALLATION_DIR"; then
@ -87,11 +87,13 @@ total %*E
# add common bin dirs to path # add common bin dirs to path
export PATH="/home/fergus/.local/bin:$PATH" export PATH="/home/fergus/.local/bin:$PATH"
export PATH="/home/fergus/.local/bin:/home/fergus/.cargo/bin:$PATH" export PATH="/home/fergus/.local/bin:/home/fergus/.cargo/bin:$PATH"
export PATH="/home/fergus/go/bin/:$PATH"
# import any extra env that doesn't want to be kept in vsc # import any extra env that doesn't want to be kept in vsc
[[ -f ~/.extra-env ]] && source ~/.extra-env [[ -f ~/.extra-env.zsh ]] && source ~/.extra-env.zsh
# add common options # add common options
alias -- less='less -R'
alias -- cp='cp -r' alias -- cp='cp -r'
alias -- mkdir='mkdir -p' alias -- mkdir='mkdir -p'
alias -- rm='rm -vr' alias -- rm='rm -vr'
@ -114,6 +116,7 @@ alias -- gC='git commit -m'
alias -- gD='git diff --staged -w' alias -- gD='git diff --staged -w'
alias -- gP='git push' alias -- gP='git push'
alias -- gPf='git push --force-with-lease' alias -- gPf='git push --force-with-lease'
alias -- gPt='git push --follow-tags'
alias -- gS='git switch -c' alias -- gS='git switch -c'
alias -- gaa='git add --all' alias -- gaa='git add --all'
alias -- gau='git add -u' alias -- gau='git add -u'
@ -144,3 +147,11 @@ fi
ZSH_HIGHLIGHT_HIGHLIGHTERS+=() ZSH_HIGHLIGHT_HIGHLIGHTERS+=()
# pnpm
export PNPM_HOME="/home/fergus/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end