Skip to content

Commit

Permalink
tmux appears to ang on OrbStack Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
karlmutch committed Dec 8, 2023
1 parent 69866d7 commit 549d22b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
6 changes: 6 additions & 0 deletions zsh.rc/01-detect-os
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ else
fi
fi

if grep -qE "(orbstack)" /proc/version &> /dev/null ; then
export UbuntuOrbStack=1
else
export UbuntuOrbStack=
fi

if grep -qE "(Microsoft|WSL)" /proc/version &> /dev/null ; then
export UbuntuWindows=1
else
Expand Down
19 changes: 16 additions & 3 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,22 @@ export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc

rehash

plugins=(profiles
dirhistory dirpersist git git-flow git-extras history per-directory-history tmux golang
colored-man-pages zsh-autosuggestions docker docker-compose zsh-syntax-highlighting z)
if grep -qE "(orbstack)" /proc/version &> /dev/null ; then
export OrbStack=1
else
export OrbStack=
fi

if [[ "$OrbStack" == "1" ]] ; then
plugins=(profiles
dirhistory dirpersist git git-flow git-extras history per-directory-history golang
colored-man-pages zsh-autosuggestions docker docker-compose zsh-syntax-highlighting z)
else
plugins=(profiles
dirhistory dirpersist git git-flow git-extras history per-directory-history tmux golang
colored-man-pages zsh-autosuggestions docker docker-compose zsh-syntax-highlighting z)
fi

autoload -U compinit && compinit

zstyle ':completion:*' rehash true
Expand Down

0 comments on commit 549d22b

Please sign in to comment.