fish-shell/share/functions/__fish_append.fish
2020-05-15 21:35:48 +02:00

7 lines
279 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