Skip to content

Commit bc916e7

Browse files
committed
fix: use export -Uzsh$SHELL
stop using Oh My Zsh’s non-standard `$ZSH` Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
1 parent 1b38c61 commit bc916e7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.zshrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,15 @@ test -d "${HOME%/}"'/.rbenv/shims' &&
215215

216216
## PATHs
217217
# prevent duplicate entries
218-
test "${ZSH-}" != '' &&
218+
case "${SHELL-}" in *zsh*)
219219
export -U \
220220
PATH path \
221221
CDPATH cdpath \
222222
FPATH fpath \
223223
MANPATH manpath
224+
;;
225+
*) ;;
226+
esac
224227

225228
## Powerlevel10k
226229
. "${HOME%/}"'/.p10k.zsh' 2>/dev/null

0 commit comments

Comments
 (0)