Skip to content

Commit dd884ef

Browse files
committed
fix(zsh): handle if not on hyprland
1 parent 164dfa0 commit dd884ef

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Configs/.zshenv

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ function load_persistent_aliases {
134134

135135
# Load oh-my-zsh when line editor initializes // before user input
136136
function load_omz_on_init() {
137-
unset -f load_omz_on_init
138-
139137
if [[ -n $DEFER_OMZ_LOAD ]]; then
140138
unset DEFER_OMZ_LOAD
141139
[[ -r $ZSH/oh-my-zsh.sh ]] && source $ZSH/oh-my-zsh.sh
@@ -152,10 +150,8 @@ function load_omz_on_init() {
152150
fi
153151
done
154152
fi
155-
153+
load_persistent_aliases
156154
fi
157-
# Load aliases
158-
load_persistent_aliases
159155
}
160156

161157
function load_if_terminal {
@@ -225,6 +221,7 @@ function load_if_terminal {
225221
}
226222

227223
# cleaning up home folder
224+
PATH="$HOME/.local/bin:$PATH"
228225
XDG_CONFIG_DIR="${XDG_CONFIG_DIR:-"$(xdg-user-dir CONFIG)"}"
229226
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
230227
XDG_DATA_DIRS="${XDG_DATA_DIRS:-$XDG_DATA_HOME:/usr/local/share:/usr/share}"

0 commit comments

Comments
 (0)