mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Fix Perl module completions.
This fixes the issue with nonexistant directories (some Linux distributions put these for local modules), and also fixes the issue of dot meaning any character instead of simply dot.
This commit is contained in:
parent
fabee7e246
commit
1665f84d60
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
begin
|
begin
|
||||||
set -l unicode 'commandline | sgrep -qe "-[a-zA-Z]*C[a-zA-Z]*\$"'
|
set -l unicode 'commandline | sgrep -qe "-[a-zA-Z]*C[a-zA-Z]*\$"'
|
||||||
set -l noopt 'commandline | not sgrep -qe "-[a-zA-Z]*C[a-zA-Z]*\$"'
|
set -l noopt 'commandline | not sgrep -qe "-[a-zA-Z]*C[a-zA-Z]*\$"'
|
||||||
set -l modules "(find (perl -lE'print for @INC') -name '*.pm' -printf '%P\n' \
|
set -l modules "(find (perl -lE'print for @INC') -name '*.pm' -printf '%P\n' ^/dev/null \
|
||||||
| awk '{ gsub(\"/\", \"::\") } /[^-.]/' RS=.pm\n | sort | uniq)"
|
| awk '{ gsub(\"/\", \"::\") } /[^-.]/' RS='\\\\\\\\.pm'\n | sort | uniq)"
|
||||||
complete -c perl -s 0 -n $noopt --description 'Specify record separator'
|
complete -c perl -s 0 -n $noopt --description 'Specify record separator'
|
||||||
complete -c perl -s a -n $noopt --description 'Turn on autosplit mode'
|
complete -c perl -s a -n $noopt --description 'Turn on autosplit mode'
|
||||||
complete -c perl -s c -n $noopt --description 'Check syntax'
|
complete -c perl -s c -n $noopt --description 'Check syntax'
|
||||||
|
|
Loading…
Reference in a new issue