aboutsummaryrefslogtreecommitdiffstats
path: root/zuwu.zsh
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-05-27 18:51:03 +0200
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-05-27 18:51:03 +0200
commite14a8dbddbab589b6255660e7abfd900482a7a96 (patch)
tree52f7689ea0de44bbeff4365935cf54471a218eb6 /zuwu.zsh
parent50eb12378c164235026dbd6745adce5bcbab00c6 (diff)
downloadzuwu-e14a8dbddbab589b6255660e7abfd900482a7a96.tar.gz
zuwu-e14a8dbddbab589b6255660e7abfd900482a7a96.tar.bz2
zuwu-e14a8dbddbab589b6255660e7abfd900482a7a96.tar.lz
zuwu-e14a8dbddbab589b6255660e7abfd900482a7a96.zip

fix: rename reloadopt to _zuwu_reloadopt. Mention lack of guarantees

Diffstat (limited to 'zuwu.zsh')
-rwxr-xr-xzuwu.zsh7
1 files changed, 4 insertions, 3 deletions
diff --git a/zuwu.zsh b/zuwu.zsh
index 0257f71..e7f58ee 100755
--- a/zuwu.zsh
+++ b/zuwu.zsh
@@ -100,8 +100,9 @@ fi
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
-# Keybinds and all that jazz
-reloadopt() {
+# Keybinds and shit
+# NOTE: this provides *NO* guarantees of properly reloading things. Restart your shell for a proper reload.
+_zuwu_reloadopt() {
if [[ -f "$HOME/.zshconf" ]]; then
no-op "${XDG_CONFIG_HOME:="$HOME/.config"}";
if ! [[ -d "$XDG_CONFIG_HOME" ]]; then
@@ -185,7 +186,7 @@ reloadopt() {
bindkey -r "^[[F"
fi
}
-reloadopt
+_zuwu_reloadopt
# Fix $HOME path being entirely inlined in zsh completion shit (or any other string at the beginnig thereof)
if grep "\"$HOME" "$HOME/.zshrc" >/dev/null 2>/dev/null; then