mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-08 10:51:45 +08:00
11 lines
181 B
Fish
11 lines
181 B
Fish
function prevd-or-backward-word
|
|
set -l cmd (commandline)
|
|
if test -z "$cmd"
|
|
prevd
|
|
commandline -f repaint
|
|
else
|
|
commandline -f backward-word
|
|
end
|
|
end
|
|
|