File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ _comp_cmd_feh()
29
29
fi
30
30
local font_path
31
31
# font_path="$(imlib2-config --prefix 2>/dev/null)/share/imlib2/data/fonts"
32
- # _comp_compgen -C "$font_path" -- -f -X "!*.@( [tT][tT][fF]) " -S /
32
+ # _comp_compgen -C "$font_path" -- -f -X "!*.[tT][tT][fF]" -S /
33
33
for (( i = ${# words[@]} - 2 ; i > 0 ; i-- )) ; do
34
34
if [[ ${words[i]} == -@ (C| -fontpath) ]]; then
35
35
font_path=" ${words[i + 1]} "
36
36
if [[ -d $font_path ]]; then
37
37
_comp_compgen -aC " $font_path " -- \
38
- -f -X " !*.@( [tT][tT][fF]) " -S /
38
+ -f -X " !*.[tT][tT][fF]" -S /
39
39
fi
40
40
fi
41
41
done
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ _comp_cmd_upgradepkg()
15
15
cur=" ${cur#*% } "
16
16
local nofiles=" "
17
17
compopt -o filenames
18
- _comp_compgen -- -P " $prev %" -f -X " !*.@( t[bgxl]z) " || nofiles=set
18
+ _comp_compgen -- -P " $prev %" -f -X " !*.t[bgxl]z" || nofiles=set
19
19
_comp_compgen -a -- -P " $prev %" -S ' /' -d
20
20
[[ $nofiles ]] && compopt -o nospace
21
21
return
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ _comp_cmd_valgrind()
7
7
8
8
local i
9
9
for (( i = 1 ; i <= cword; i++ )) ; do
10
- if [[ ${words[i]} != @ ( [-= ]) * ]]; then
10
+ if [[ ${words[i]} != [-= ]* ]]; then
11
11
_comp_command_offset $i
12
12
return
13
13
fi
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ gitgrep '(?<!command)'"$cmdstart"'(grep|ls|sed|cd)(\s|$)' \
52
52
gitgrep ' (?<!command)' " $cmdstart " ' awk(\s|$)' \
53
53
' invoke awk through "_comp_awk"'
54
54
55
+ gitgrep ' @\([^()|$]+\)' \
56
+ ' @(...) may not be needed when ... does not contain |.'
57
+
55
58
# ------------------------------------------------------------------------------
56
59
# Bash pitfalls/styles/compatibilities (which are not detected by shellcheck)
57
60
You can’t perform that action at this time.
0 commit comments