Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

which-key-shell

shell shortcut launcher inspired by spacemacs

alias に登録する程でもないことを Spacemacs みたいに呼び出そう!
Let's call things like Spacemacs that aren't worth registering in alias!

連続したキーストロークを階層構造で定義することができます。(config.jsonを参照)
Sequential keystrokes can be defined in a hierarchical structure. (See config.json)

Setup (for zsh)

requirement: python3

1. clone this repo

git clone git@github.com:caffeine0coffee/space-shell-shortcut.git

2. setup .zshrc

# space-shell-shortcut
function space-shell-shortcut() {
    BUFFER=`zsh <path-to-run.sh> < $TTY`
    if [ $? -eq 0 ]; then
        CURSOR=$#BUFFER
        zle accept-line
    else
        zle reset-prompt
    fi
}
zle -N space-shell-shortcut

bindkey <your-favorite-key> space-shell-shortcut
# e.g. bindkey '^G' space-shell-shortcut

3. create .wkshell_config.json in home directory

TODO: automation

Customize

copy config.json to your wkshell_config.json and customize it.

About

shell shortcut launcher inspired by spacemacs

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages