Skip to content

Commit bb844e6

Browse files
committed
feat: remove Oh My Zsh check
Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
1 parent f0cdbff commit bb844e6

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.zshrc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,17 @@ bindkey '^[[1;5C' forward-word
6969
bindkey '^[[1;5D' backward-word
7070
bindkey '^[[Z' reverse-menu-complete
7171

72-
## Oh My Zsh
73-
. "${ZSH-}"'/oh-my-zsh.sh'
74-
for file in "${ZSH_CUSTOM-}"/plugins/**/*.plugin.*sh; do
75-
. "${file-}" 2>/dev/null &&
76-
FPATH="${FPATH:+${FPATH-}:}${file%/*}"
77-
done
78-
for file in "${ZSH_CUSTOM-}"/*sh; do
79-
. "${file-}"
80-
done
72+
## Plugins and custom scripts
73+
test -d "${ZSH_CUSTOM-}" &&
74+
{
75+
for file in "${ZSH_CUSTOM-}"/plugins/**/*.plugin.*sh; do
76+
. "${file-}" 2>/dev/null &&
77+
FPATH="${FPATH:+${FPATH-}:}${file%/*}"
78+
done
79+
for file in "${ZSH_CUSTOM-}"/*sh; do
80+
. "${file-}"
81+
done
82+
}
8183

8284
## MANPATH
8385
test -d '/usr/local/man' &&

0 commit comments

Comments
 (0)