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