mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 09:23:28 +08:00
9 lines
271 B
Fish
9 lines
271 B
Fish
|
function prevd-or-backward-token --description "If commandline is empty, run prevd; else move one argument to the left"
|
||
|
if test "$(commandline; printf .)" = \n.
|
||
|
prevd
|
||
|
commandline -f repaint
|
||
|
return
|
||
|
end
|
||
|
commandline -f backward-token
|
||
|
end
|