mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
9c327b19a6
New fish_indent does that too, so this will make any future reformatting diffs smaller. Done using either of: perl -pi -e 'undef $/; s/\n*$/\n/' share/**.fish kak -n -f '<a-/>\n*<ret>d' share/**.fish
6 lines
277 B
Fish
6 lines
277 B
Fish
function __fish_append -d "Internal completion function for appending string to the commandline" --argument sep
|
|
set -e argv[1]
|
|
set -l str (commandline -tc | string replace -rf "(.*$sep)[^$sep]*" '$1' | string replace -r -- '--.*=' '')
|
|
printf "%s\n" "$str"$argv
|
|
end
|