Last active
December 15, 2015 22:09
-
-
Save mystelynx/5330647 to your computer and use it in GitHub Desktop.
zshで何も入力せずにエンターしたときにlsを実行する。
http://d.hatena.ne.jp/kei_q/20110406/1302091565
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accept-line-or-ls() { | |
zle accept-line | |
if [[ -z "$BUFFER" ]]; then | |
echo '' | |
ls | |
fi | |
} | |
zle -N accept-line-or-ls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
キーバインドの設定はどけといた。