equal
deleted
inserted
replaced
44 return |
44 return |
45 fi |
45 fi |
46 |
46 |
47 local cmd="${COMP_WORDS[1]}" |
47 local cmd="${COMP_WORDS[1]}" |
48 case "$cmd" in |
48 case "$cmd" in |
49 cat|depends|download|export|hold|home|info|install|prefix|reset|status|unhold|uninstall|update|virustotal) |
49 cat|depends|download|export|hold|home|info|install|prefix|reset|status|unhold|uninstall|update|virustotal|which) |
50 local dir=`command -v scoop` |
50 local dir=`command -v scoop` |
51 dir=${dir%/shims/*}/buckets |
51 dir=${dir%/shims/*}/buckets |
52 [[ -d "$dir" ]] || return |
52 [[ -d "$dir" ]] || return |
53 local olddir="$PWD" |
53 local olddir="$PWD" |
54 cd $dir |
54 cd $dir |