From a62114c91f2070c8c8453d117f3d81dc113e41ff Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Mon, 25 Mar 2024 16:43:09 +0530 Subject: dotfile update --- zsh/oh-my-zsh/plugins/zsh-navigation-tools/_n-kill | 41 ---------------------- 1 file changed, 41 deletions(-) delete mode 100644 zsh/oh-my-zsh/plugins/zsh-navigation-tools/_n-kill (limited to 'zsh/oh-my-zsh/plugins/zsh-navigation-tools/_n-kill') diff --git a/zsh/oh-my-zsh/plugins/zsh-navigation-tools/_n-kill b/zsh/oh-my-zsh/plugins/zsh-navigation-tools/_n-kill deleted file mode 100644 index 9da68b9..0000000 --- a/zsh/oh-my-zsh/plugins/zsh-navigation-tools/_n-kill +++ /dev/null @@ -1,41 +0,0 @@ -#compdef n-kill - -local context ret=1 - -typeset -a list linewords -typeset -aU words wordbits -local line word -integer cygwin=0 - -local IFS=" -" - -case "$(uname)" in - CYGWIN*) list=( `command ps -Wa` ); cygwin=1 ;; - *) list=( `command ps -o pid,uid,command -A` ) ;; -esac - -shift list - -IFS=" " -for line in "${list[@]}"; do - linewords=( $=line ) - if [ "$cygwin" = "1" ]; then - linewords=( "${(@)linewords[8,-1]}" ) - else - linewords=( "${(@)linewords[3,-1]}" ) - fi - for word in "${linewords[@]}"; do - if [ "$cygwin" = "1" ]; then - wordbits=( "${(@s:\:)word}" ) - else - wordbits=( "${(@s:/:)word}" ) - fi - words+=( "${wordbits[@]}" ) - done -done - -_wanted bits expl "Processes' name bits" \ - compadd -M 'm:{a-z}={A-Z}' "$@" -a - words && ret=0 - -return "$ret" -- cgit v1.2.3-59-g8ed1b