diff options
Diffstat (limited to 'bash/bashrc.d/git.bash')
-rw-r--r-- | bash/bashrc.d/git.bash | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bash/bashrc.d/git.bash b/bash/bashrc.d/git.bash index 76477fa9..5965607c 100644 --- a/bash/bashrc.d/git.bash +++ b/bash/bashrc.d/git.bash @@ -7,8 +7,9 @@ _git() { fi # Get current and previous word - local word=${COMP_WORDS[COMP_CWORD]} - local first=${COMP_WORDS[1]} + local word first + word=${COMP_WORDS[COMP_CWORD]} + first=${COMP_WORDS[1]} # Switch on the previous word case $first in |