From a62114c91f2070c8c8453d117f3d81dc113e41ff Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Mon, 25 Mar 2024 16:43:09 +0530 Subject: dotfile update --- .../plugins/zsh-navigation-tools/n-aliases | 47 ---------------------- 1 file changed, 47 deletions(-) delete mode 100644 zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-aliases (limited to 'zsh/oh-my-zsh/plugins/zsh-navigation-tools/n-aliases') 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: -- cgit v1.2.3-59-g8ed1b