From f99ac7d53e90de32007f12e76c2b1edcb3c98a7a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 14 Dec 2015 17:52:43 +1300 Subject: Localise a stray variable --- bash/bashrc.d/path.bash | 1 + 1 file changed, 1 insertion(+) (limited to 'bash/bashrc.d') diff --git a/bash/bashrc.d/path.bash b/bash/bashrc.d/path.bash index 94c6207c..f6a9c5b0 100644 --- a/bash/bashrc.d/path.bash +++ b/bash/bashrc.d/path.bash @@ -185,6 +185,7 @@ _path() { # Complete operation as first word 1) + local cmd for cmd in help list insert append remove set check ; do [[ $cmd == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue COMPREPLY[${#COMPREPLY[@]}]=$cmd -- cgit v1.2.3