Skip to content

Commit 8ca8b0a

Browse files
author
Jonathan Dahan
committed
fix problem sourcing functions
1 parent e1b151b commit 8ca8b0a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
The format is based on [Keep a Changelog](http://keepachangelog.com/)
44
and this project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## 2.0.5 - 2019-10-14
7+
8+
### Fixed
9+
- Problem sourcing functions
10+
611
## 2.0.4 - 2019-10-14
712

813
### Fixed

geometry.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# pure: https://github.com/sindresorhus/pure
55
# mnml: https://github.com/subnixr/minimal
66

7-
typeset -gA GEOMETRY
7+
typeset -gA GEOMETRY; GEOMETRY[ROOT]=${0:A:h}
88

99
(($+GEOMETRY_PROMPT)) || GEOMETRY_PROMPT=(geometry_echo geometry_status geometry_path)
1010
(($+GEOMETRY_RPROMPT)) || GEOMETRY_RPROMPT=(geometry_exec_time geometry_git geometry_hg geometry_echo)
1111
(($+GEOMETRY_INFO)) || GEOMETRY_INFO=(geometry_hostname geometry_jobs)
1212

1313
autoload -U add-zsh-hook
1414

15-
function { local fun; for fun ("${0:A:h}"/functions/geometry_*.zsh(N.)) . $fun }
15+
function { local fun; for fun ("${GEOMETRY[ROOT]}"/functions/*) . $fun }
1616

1717
(( $+functions[ansi] )) || ansi() { (($# - 2)) || echo -n "%F{$1}$2%f"; }
1818

0 commit comments

Comments
 (0)