aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-25 16:30:16 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-25 16:32:20 +1300
commitae16b1077311c228048f040f93977d3ae862340b (patch)
tree978fb422893c0237d37506f4d1ed42179db0fc65 /bash
parentAvoid a fork in options detection (diff)
downloaddotfiles-ae16b1077311c228048f040f93977d3ae862340b.tar.gz
dotfiles-ae16b1077311c228048f040f93977d3ae862340b.zip
Add "pop" and "shift" methods to path()
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_completion.d/path.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_completion.d/path.bash b/bash/bash_completion.d/path.bash
index a65e10ce..ba2dcb79 100644
--- a/bash/bash_completion.d/path.bash
+++ b/bash/bash_completion.d/path.bash
@@ -6,7 +6,7 @@ _path() {
# Complete operation as first word
local cmd
- for cmd in list insert append remove check help ; do
+ for cmd in list insert append remove shift pop check help ; do
[[ $cmd == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue
COMPREPLY[${#COMPREPLY[@]}]=$cmd
done