mirror of
https://github.com/MillironX/dotfiles.git
synced 2024-11-21 13:16: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:
parent
2dabcd4e11
commit
0f2023f999
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
export PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||
|
||||
# Linuxbrew setup
|
||||
if [ -d $HOME/../linuxbrew/.linuxbrew ]; then
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue