We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adf7f7e commit 4a42fe0Copy full SHA for 4a42fe0
geometry.zsh
@@ -15,7 +15,8 @@ typeset -gA GEOMETRY; GEOMETRY[ROOT]=${0:A:h}
15
16
autoload -U add-zsh-hook
17
18
-function { local fun; for fun ("${GEOMETRY[ROOT]}"/functions/*) . $fun }
+fpath+=("${GEOMETRY[ROOT]}"/functions)
19
+autoload "${GEOMETRY[ROOT]}"/functions/*
20
21
(( $+functions[ansi] )) || ansi() { (($# - 2)) || echo -n "%F{$1}$2%f"; }
22
(( $+functions[deansi] )) || deansi() { (($# - 1)) || echo -n "$(echo "$1" | sed s/$(echo "\033")\\\[\[0-9\]\\\{1,2\\\}m//g)"; }
0 commit comments