mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -03:00
Restyle a few stragglers
THERE WERE TABS! TABS! TABS! [ci skip]
This commit is contained in:
@@ -27,11 +27,11 @@ if not set -q __fish_is_running_tests
|
||||
# Set up our test environment and re-run the original script.
|
||||
set -l script $argv[1]
|
||||
switch $script
|
||||
case '/*'
|
||||
# path is absolute
|
||||
case '*'
|
||||
# path is relative, make it absolute
|
||||
set script $PWD/$script
|
||||
case '/*'
|
||||
# path is absolute
|
||||
case '*'
|
||||
# path is relative, make it absolute
|
||||
set script $PWD/$script
|
||||
end
|
||||
|
||||
begin
|
||||
@@ -51,7 +51,7 @@ if not set -q __fish_is_running_tests
|
||||
|
||||
set -l escaped_parent (dirname $PWD | sed -e 's/[\'\\\\]/\\\\&/g'); or die
|
||||
set -l escaped_config (printf '%s/fish' $XDG_CONFIG_HOME | sed -e 's/[\'\\\\]/\\\\&/g'); or die
|
||||
printf 'set fish_function_path \'%s/functions\' \'%s/share/functions\'\n' $escaped_config $escaped_parent > $XDG_CONFIG_HOME/fish/config.fish; or die
|
||||
printf 'set fish_function_path \'%s/functions\' \'%s/share/functions\'\n' $escaped_config $escaped_parent >$XDG_CONFIG_HOME/fish/config.fish; or die
|
||||
set -xl __fish_is_running_tests $XDG_CONFIG_HOME
|
||||
|
||||
# Set locale information for consistent tests. Fish should work with a lot of locales but the
|
||||
@@ -108,7 +108,9 @@ function say -V suppress_color
|
||||
return 1
|
||||
end
|
||||
|
||||
if begin; test -n "$suppress_color"; or set_color $color_flags $argv[1]; end
|
||||
if begin
|
||||
test -n "$suppress_color"; or set_color $color_flags $argv[1]
|
||||
end
|
||||
printf '%s' $argv[2..-1]
|
||||
test -z "$suppress_color"; and set_color normal
|
||||
if test -z "$suppress_newline"
|
||||
|
||||
Reference in New Issue
Block a user