aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-07-30 01:18:36 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-07-30 02:09:30 +1200
commit476a90de537766cfbe935e409e3e39f3dcdd037d (patch)
tree1c6a7bf29cd297d14fe08989f6a5bc31ac7a6906 /bash/bash_completion.d
parentMove bash completion setup into separate dir (diff)
downloaddotfiles-476a90de537766cfbe935e409e3e39f3dcdd037d.tar.gz
dotfiles-476a90de537766cfbe935e409e3e39f3dcdd037d.zip
Rename vis completion to eds
Diffstat (limited to 'bash/bash_completion.d')
-rw-r--r--bash/bash_completion.d/eds.bash (renamed from bash/bash_completion.d/vis.bash)14
1 files changed, 7 insertions, 7 deletions
diff --git a/bash/bash_completion.d/vis.bash b/bash/bash_completion.d/eds.bash
index f84cb702..8d0f6067 100644
--- a/bash/bash_completion.d/vis.bash
+++ b/bash/bash_completion.d/eds.bash
@@ -1,15 +1,15 @@
-# Complete args to vis(1) with existing executables in $VISPATH, defaulting to
+# Complete args to eds(1) with existing executables in $EDSPATH, defaulting to
# ~/.local/bin
-_vis() {
- local vispath
- vispath=${VISPATH:-"$HOME"/.local/bin}
- [[ -d $vispath ]] || return
+_eds() {
+ local edspath
+ edspath=${EDSPATH:-"$HOME"/.local/bin}
+ [[ -d $edspath ]] || return
while IFS= read -rd '' executable ; do
COMPREPLY[${#COMPREPLY[@]}]=$executable
done < <(
shopt -s dotglob nullglob
declare -a files
- files=("${VISPATH:-"$HOME"/.local/bin}"/"${COMP_WORDS[COMP_CWORD]}"*)
+ files=("${EDSPATH:-"$HOME"/.local/bin}"/"${COMP_WORDS[COMP_CWORD]}"*)
declare -a executables
for file in "${files[@]}" ; do
[[ -f $file && -x $file ]] || continue
@@ -19,4 +19,4 @@ _vis() {
printf '%q\0' "${executables[@]}"
)
}
-complete -F _vis vis
+complete -F _eds eds