fish-shell/share/functions/__fish_append.fish
Fabian Homborg 912ba177ec functions/__fish_append: Stringify
This called `sed`, twice.
2019-03-14 13:23:48 +01:00

8 lines
276 B
Fish

function __fish_append -d "Internal completion function for appending string to the commandline" --argument sep
set -e argv[1]
set str (commandline -tc | string replace -rf "(.*$sep)[^$sep]*" '$1' | string replace -r -- '--.*=' '')
printf "%s\n" "$str"$argv
end