mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
Run fish_indent on share/**.fish
This commit is contained in:
parent
3a375c2399
commit
1b20e75f19
|
@ -9,7 +9,7 @@ end
|
||||||
set -l sysver (uname -sr | string match -r "(Darwin) (\d\d)"\.)
|
set -l sysver (uname -sr | string match -r "(Darwin) (\d\d)"\.)
|
||||||
|
|
||||||
if test $status -eq 0 -a (count $sysver) -eq 3
|
if test $status -eq 0 -a (count $sysver) -eq 3
|
||||||
and test $sysver[2] = 'Darwin' -a $sysver[3] -ge 19
|
and test $sysver[2] = Darwin -a $sysver[3] -ge 19
|
||||||
|
|
||||||
set -l dir
|
set -l dir
|
||||||
if test -n "$XDG_CACHE_HOME"
|
if test -n "$XDG_CACHE_HOME"
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
function __fish_is_token_n --description 'Test if current token is on Nth place' --argument-names n
|
function __fish_is_token_n --description 'Test if current token is on Nth place' --argument-names n
|
||||||
fish_is_nth_token $n
|
fish_is_nth_token $n
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ function __fish_make_completion_signals --description 'Make list of kill signals
|
||||||
# Just hardcode the signals.
|
# Just hardcode the signals.
|
||||||
set -l os (uname)
|
set -l os (uname)
|
||||||
if string match -q 'CYGWIN*' -- $os
|
if string match -q 'CYGWIN*' -- $os
|
||||||
or string match -iq 'Msys' -- $os
|
or string match -iq Msys -- $os
|
||||||
set -a __kill_signals "1 HUP" "2 INT" "3 QUIT" "4 ILL" "5 TRAP" "6 ABRT" \
|
set -a __kill_signals "1 HUP" "2 INT" "3 QUIT" "4 ILL" "5 TRAP" "6 ABRT" \
|
||||||
"6 IOT" "7 BUS" "8 FPE" "9 KILL" "10 USR1" "11 SEGV" \
|
"6 IOT" "7 BUS" "8 FPE" "9 KILL" "10 USR1" "11 SEGV" \
|
||||||
"12 USR2" "13 PIPE" "14 ALRM" "15 TERM" "16 STKFLT" "17 CHLD" \
|
"12 USR2" "13 PIPE" "14 ALRM" "15 TERM" "16 STKFLT" "17 CHLD" \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user