The fish plugin that exec ls
if you exec $ <Enter>
.
Using Fisher
$ fisher install Omochice/emptyls-fish
After installing, write the keybinding in $XDG_CONFIG_HOME/fish/functions/fish_user_key_bindings.fish
.
function fish_user_key_bindings
bind \r emptyls
end
If you want to use other commands like git status
, use variable __emptyls_cmds__
in fish shell.
$ set -Ux __emptyls_cmds__ "ls" "git status"