Omochice / emptyls-fish

if hit enter with empty buffer, exec ls.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

empltyls-fish

The fish plugin that exec ls if you exec $ <Enter>.

Installation

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

Optional

If you want to use other commands like git status, use variable __emptyls_cmds__ in fish shell.

$ set -Ux __emptyls_cmds__ "ls" "git status"

Inspiration

About

if hit enter with empty buffer, exec ls.

License:MIT License


Languages

Language:Shell 100.0%