aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/kill.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-01 14:19:12 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-01 14:19:12 +1300
commit280d471d84156e4a491b626c89ff7ea43fb7dd82 (patch)
tree588cc80b2b94eee7d7767f694fa5bcc1513b2417 /bash/bash_completion.d/kill.bash
parentb6c540ded9a527f19b8bff7888e330ba2786f552 (diff)
downloaddotfiles-280d471d84156e4a491b626c89ff7ea43fb7dd82.tar.gz
dotfiles-280d471d84156e4a491b626c89ff7ea43fb7dd82.zip
Remove `kill` completion
Completing PIDs is stupid, in retrospect.
Diffstat (limited to 'bash/bash_completion.d/kill.bash')
-rw-r--r--bash/bash_completion.d/kill.bash16
1 files changed, 0 insertions, 16 deletions
diff --git a/bash/bash_completion.d/kill.bash b/bash/bash_completion.d/kill.bash
deleted file mode 100644
index bdb42ec1..00000000
--- a/bash/bash_completion.d/kill.bash
+++ /dev/null
@@ -1,16 +0,0 @@
-# Complete kill builtin with jobspecs (prefixed with % so it will accept them)
-# and this user's PIDs (requires pgrep(1))
-_kill() {
- local pid
- while read -r pid ; do
- case $pid in
- "$2"*)
- COMPREPLY[${#COMPREPLY[@]}]=$pid
- ;;
- esac
- done < <( {
- compgen -A job -P%
- pgrep -u "$USER" .
- } 2>/dev/null )
-}
-complete -F _kill kill