aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-23 17:18:06 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-23 17:18:06 +1200
commit74931c8aaa8b2e9cd8aa8d9e3b491fb6ab3b194d (patch)
tree986fcf312bab97886ab4b2bdf3a8c732a01c0555 /bash/bashrc.d
parent5c16583fbf6353b4682947505e6b8059b98b6c8b (diff)
downloaddotfiles-74931c8aaa8b2e9cd8aa8d9e3b491fb6ab3b194d.tar.gz
dotfiles-74931c8aaa8b2e9cd8aa8d9e3b491fb6ab3b194d.zip
Completion for aliases
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/completion.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/bash/bashrc.d/completion.bash b/bash/bashrc.d/completion.bash
index 3e1c7bac..d2350d61 100644
--- a/bash/bashrc.d/completion.bash
+++ b/bash/bashrc.d/completion.bash
@@ -6,6 +6,9 @@
# character: <http://tiswww.case.edu/php/chet/bash/FAQ> (E13)
[[ -n $COMP_WORDBREAKS ]] && COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
+# Aliases
+complete -A alias unalias
+
# Bash builtins
complete -A builtin builtin
complete -A enabled disable
@@ -15,7 +18,7 @@ complete -A disabled enable
complete -A setopt set
# Commands
-complete -A command command complete compopt coproc exec if hash time type until while
+complete -A command alias command complete compopt coproc exec if hash time type until while
# Directories
complete -A directory cd pushd mkdir rmdir