Skip to content

Commit aaff47b

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 bb844e6 commit aaff47b

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
@@ -234,12 +234,15 @@ rbenv() {
234234

235235
## PATHs
236236
# prevent duplicate entries
237-
test "${ZSH-}" != '' &&
237+
case "${SHELL-}" in *zsh*)
238238
export -U \
239239
PATH path \
240240
CDPATH cdpath \
241241
FPATH fpath \
242242
MANPATH manpath
243+
;;
244+
*) ;;
245+
esac
243246

244247
## Powerlevel10k
245248
test "${ZSH_THEME-}" = 'powerlevel10k/powerlevel10k' &&

0 commit comments

Comments
 (0)