Skip to content

Commit c5caae0

Browse files
Remove old aliases
1 parent 83a519d commit c5caae0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

completion/available/aliases.completion.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ function _bash-it-component-completion-callback-on-init-aliases() {
5252
if [[ "$aliasCommandFunction" != "_${namespace}::"* ]]; then
5353
continue
5454
fi
55+
56+
# Remove existing completion. It will be replaced by the new one. We need to
57+
# delete it in case the new alias does not support having completion added.
58+
complete -r "$alias_name"
5559
fi
5660

5761
alias_defn="${line#*=\'}" # alias definition

0 commit comments

Comments
 (0)