mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 00:57:25 +08:00
912ba177ec
This called `sed`, twice.
8 lines
276 B
Fish
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
|
|
|
|
|