1
0
Fork 0
mirror of https://github.com/MillironX/dotfiles.git synced 2024-11-21 21:26:04 +00:00

Switch to more portable zsh switching

Older versions of `which` apparantly are more verbose and list extra text
in addition to the path. Get rid of that nonsense

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2021-10-20 07:56:22 -05:00
parent 2dabcd4e11
commit 0f2023f999
Signed by: millironx
GPG key ID: 139C07724802BC5D
2 changed files with 2 additions and 4 deletions

View file

@ -1,8 +1,6 @@
# shellcheck shell=sh
# User specific environment
if ! [ "$(expr "$PATH" : "$HOME/.local/bin:$HOME/bin:")" ];then
export PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
# Linuxbrew setup
if [ -d $HOME/../linuxbrew/.linuxbrew ]; then

View file

@ -14,7 +14,7 @@ fi
{{ if (eq .chezmoi.osRelease.versionID "7") }}
# Switch to zsh if interactive, and we haven't been told not to
if [[ ($- == *i*) && ($SSH_TTY) && (-z $NO_ZSH) ]]; then
export SHELL=$(which zsh)
export SHELL=$(command -v zsh)
exec $SHELL -l
fi
{{ end }}