7 lines
246 B
Fish
7 lines
246 B
Fish
function _replace_command_token --description 'Remove first token from commandline and place cursor at start'
|
|
set -l cmd (commandline)
|
|
set -l rest (string replace -r '^\S+\s*' '' -- $cmd)
|
|
commandline -- $rest
|
|
commandline -C 0
|
|
end
|