Restyle a few stragglers

THERE WERE TABS! TABS!

TABS!

[ci skip]
This commit is contained in:
Fabian Homborg
2019-05-20 21:07:37 +02:00
parent c2b7e9b2e6
commit 7ddae68645
5 changed files with 14 additions and 12 deletions

View File

@@ -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"