X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fzsh-navigation-tools%2Fn-aliases;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fzsh-navigation-tools%2Fn-aliases;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=f8c1c3727c2c2e08bb980bd58e0a736d4fdacde1;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/zsh-navigation-tools/n-aliases b/stow/oh-my-zsh/.oh-my-zsh/plugins/zsh-navigation-tools/n-aliases deleted file mode 100644 index f8c1c37..0000000 --- a/stow/oh-my-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: