mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00: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
5 lines
277 B
Fish
5 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
|