Skip to content

Instantly share code, notes, and snippets.

@jewel12
Created April 30, 2013 12:46
Show Gist options
  • Save jewel12/5488478 to your computer and use it in GitHub Desktop.
Save jewel12/5488478 to your computer and use it in GitHub Desktop.
# コマンドを実行し、標準出力をlessに流す
function _exec_cmd_with_less () {
BUFFER+='|less'
zle accept-line
}
zle -N _exec_cmd_with_less
bindkey '^L' _exec_with_less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment