diff options
author | 2024-03-25 16:43:09 +0530 | |
---|---|---|
committer | 2024-03-25 16:43:09 +0530 | |
commit | a62114c91f2070c8c8453d117f3d81dc113e41ff (patch) | |
tree | f266e87af29a08c01f82bc32dd7d463d8ec4441a /zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-aliases | |
parent | af120ab348f2e1a5a39dec035ed9dcf84189a64e (diff) | |
download | dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2 dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip |
dotfile update
Diffstat (limited to 'zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-aliases')
-rw-r--r-- | zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-aliases | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-aliases b/zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-aliases deleted file mode 100644 index f8c1c37..0000000 --- a/zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-aliases +++ /dev/null @@ -1,47 +0,0 @@ -# Copy this file into /usr/share/zsh/site-functions/ -# and add 'autoload n-aliases` to .zshrc -# -# This function allows to choose an alias for edition with vared -# -# Uses n-list - -emulate -L zsh - -setopt extendedglob -zmodload zsh/curses -zmodload zsh/parameter - -local IFS=" -" - -unset NLIST_COLORING_PATTERN - -[ -f ~/.config/znt/n-list.conf ] && builtin source ~/.config/znt/n-list.conf -[ -f ~/.config/znt/n-aliases.conf ] && builtin source ~/.config/znt/n-aliases.conf - -local list -local selected - -NLIST_REMEMBER_STATE=0 - -list=( "${(@k)aliases}" ) -list=( "${(@M)list:#(#i)*$1*}" ) - -local NLIST_GREP_STRING="$1" - -if [ "$#list" -eq 0 ]; then - echo "No matching aliases" - return 1 -fi - -list=( "${(@i)list}" ) -n-list "$list[@]" - -if [ "$REPLY" -gt 0 ]; then - selected="$reply[REPLY]" - echo "Editing \`$selected':" - print -rs "vared aliases\\[$selected\\]" - vared aliases\[$selected\] -fi - -# vim: set filetype=zsh: |