mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
Another formatting run
I really kinda hate how insistent clang-format is to have line breaks *IFF THE LINE IS TOO LONG*. Like... lemme just add a break if it looks better, will you? But it is the style at this time, so we shall tie an onion to our belt.
This commit is contained in:
@@ -265,7 +265,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||
|
||||
# Notify terminals when $PWD changes (issue #906).
|
||||
# VTE based terminals, Terminal.app, iTerm.app (TODO), and foot support this.
|
||||
if test 0"$VTE_VERSION" -ge 3405 -o "$TERM_PROGRAM" = Apple_Terminal -a (string match -r '\d+' 0"$TERM_PROGRAM_VERSION") -ge 309 -o "$TERM" = "foot"
|
||||
if test 0"$VTE_VERSION" -ge 3405 -o "$TERM_PROGRAM" = Apple_Terminal -a (string match -r '\d+' 0"$TERM_PROGRAM_VERSION") -ge 309 -o "$TERM" = foot
|
||||
function __update_cwd_osc --on-variable PWD --description 'Notify capable terminals when $PWD changes'
|
||||
if status --is-command-substitution || set -q INSIDE_EMACS
|
||||
return
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function funcsave --description "Save the current definition of all specified functions to file"
|
||||
set -l options 'h/help' 'd/directory='
|
||||
set -l options h/help 'd/directory='
|
||||
argparse -n funcsave $options -- $argv
|
||||
or return
|
||||
|
||||
@@ -8,11 +8,11 @@ function funcsave --description "Save the current definition of all specified fu
|
||||
return 0
|
||||
end
|
||||
|
||||
if set -q _flag_directory
|
||||
set funcdir $_flag_directory
|
||||
else
|
||||
set funcdir $__fish_config_dir/functions
|
||||
end
|
||||
if set -q _flag_directory
|
||||
set funcdir $_flag_directory
|
||||
else
|
||||
set funcdir $__fish_config_dir/functions
|
||||
end
|
||||
|
||||
if not set -q argv[1]
|
||||
printf (_ "%ls: Expected at least %d args, got only %d\n") funcsave 1 0
|
||||
|
||||
@@ -181,7 +181,7 @@ function help --description 'Show help for the fish shell'
|
||||
if string match -qr 'cmd\.exe$' -- $fish_browser[1]
|
||||
# The space before the /c is to prevent msys2 from expanding it to a path
|
||||
$fish_browser " /c" start $page_url
|
||||
# If browser is known to be graphical, put into background
|
||||
# If browser is known to be graphical, put into background
|
||||
else if contains -- $fish_browser[1] $graphical_browsers
|
||||
switch $fish_browser[1]
|
||||
case htmlview x-www-browser
|
||||
|
||||
Reference in New Issue
Block a user