fish-shell/share/functions/prevd-or-backward-word.fish
2015-08-26 21:30:04 +02:00

10 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