New safe_source logic.

This commit is contained in:
2026-06-23 19:09:28 -04:00
parent 920493abee
commit 9af1431df8
+5 -1
View File
@@ -53,10 +53,14 @@ endif
_debug "Setting up optional sourcing mechanism."
# This safe_source alias is incredibly delicate. It drives the whole
# optional sourcing mechanism -- DO NOT MESS WITH IT!
alias safe_source 'eval "if ( -f \!:1 ) then \\
alias old_safe_source 'eval "if ( -f \!:1 ) then \\
source \!:1 \\
endif"'
alias new_safe_source "test -f \!:1 && source \!:1"
alias safe_source new_safe_source
_debug "Setting up optional session sourcing mechanism."
# These reload_session and `__load_session` aliases ar incredibly delicate. They drives
# the whole optional session mechanism -- DO NOT MESS WITH IT LIGHTLY!