Reformat fish scripts with escaped newline changes to fish_indent

This commit is contained in:
Fabian Homborg 2020-03-15 20:54:01 +01:00
parent 7891973c9c
commit aa629c5aca
3 changed files with 4 additions and 7 deletions

View File

@ -69,8 +69,7 @@ function __fish_git_unique_remote_branches
# `git checkout frobulate` is equivalent to `git checkout -b frobulate --track alice/frobulate`.
__fish_git for-each-ref --format="%(refname:strip=3)" \
--sort="refname:strip=3" \
"refs/remotes/*/$match*" "refs/remotes/*/*/**" 2>/dev/null | \
uniq -u
"refs/remotes/*/$match*" "refs/remotes/*/*/**" 2>/dev/null | uniq -u
end
function __fish_git_tags
@ -1070,8 +1069,7 @@ complete -c git -n '__fish_git_using_command diff; and __fish_contains_opt cache
### Function to list available tools for git difftool and mergetool
function __fish_git_diffmerge_tools -a cmd
git $cmd --tool-help | \
while read -l line
git $cmd --tool-help | while read -l line
string match -q 'The following tools are valid, but not currently available:' -- $line
and break
string replace -f -r '^\t\t(\w+).*$' '$1' -- $line

View File

@ -109,7 +109,7 @@ function __fish_config_interactive -d "Initializations that should be performed
# Run python directly in the background and swallow all output
$py $update_args >/dev/null 2>&1 &
# Then disown the job so that it continues to run in case of an early exit (#6269)
disown >/dev/null 2>&1
disown >/dev/null 2>&1
break
end
end

View File

@ -15,8 +15,7 @@ d echo true
\U00000066\
true
echo if true
\
\145n\
\145n\
d\
#CHECK: if true