Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with znap #317

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion geometry.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ typeset -gA GEOMETRY; GEOMETRY[ROOT]=${0:A:h}

autoload -U add-zsh-hook

function { local fun; for fun ("${GEOMETRY[ROOT]}"/functions/*) . $fun }
() { setopt localoptions extendedglob; for fun ("$GEOMETRY[ROOT]"/functions/^*.zwc) . $fun }

(( $+functions[ansi] )) || ansi() { (($# - 2)) || echo -n "%F{$1}$2%f"; }
(( $+functions[deansi] )) || deansi() { (($# - 1)) || echo -n "$(echo "$1" | sed s/$(echo "\033")\\\[\[0-9\]\\\{1,2\\\}m//g)"; }
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ tool | add to `.zshrc`
--------------|--------------------------------------
[zr][] | `zr geometry-zsh/geometry`
[zplug][] | `zplug "geometry-zsh/geometry"`
[znap][] | `znap prompt geometry-zsh/geometry`
[antigen][] | `antigen theme geometry-zsh/geometry`
[Homebrew][] | `brew install geometry`
**manually** | `source geometry/geometry.zsh` (after `git clone https://github.com/geometry-zsh/geometry`)
Expand Down Expand Up @@ -142,6 +143,7 @@ A big thank you to the dozens of [additional contributors](https://github.com/ge

[functions wiki page]: https://github.com/geometry-zsh/geometry/wiki/functions
[open an issue]: https://github.com/geometry-zsh/geometry/issues/new
[znap]: https://github.com/marlonrichert/zsh-snap
[zr]: https://github.com/jedahan/zr
[zplug]: https://github.com/zplug/zplug
[antigen]: https://github.com/zsh-users/antigen
Expand Down