Skip to content

Commit ed7eaf1

Browse files
author
jedahan
committed
Revert "Add functions to fpath, instead of sourcing one by one"
This reverts commit 4a42fe0.
1 parent ee276d1 commit ed7eaf1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

geometry.zsh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ typeset -gA GEOMETRY; GEOMETRY[ROOT]=${0:A:h}
1515

1616
autoload -U add-zsh-hook
1717

18-
fpath+=("${GEOMETRY[ROOT]}"/functions)
19-
autoload "${GEOMETRY[ROOT]}"/functions/*
18+
function { local fun; for fun ("${GEOMETRY[ROOT]}"/functions/*) . $fun }
2019

2120
(( $+functions[ansi] )) || ansi() { (($# - 2)) || echo -n "%F{$1}$2%f"; }
2221
(( $+functions[deansi] )) || deansi() { (($# - 1)) || echo -n "$(echo "$1" | sed s/$(echo "\033")\\\[\[0-9\]\\\{1,2\\\}m//g)"; }

0 commit comments

Comments
 (0)