Skip to content

Instantly share code, notes, and snippets.

@t-uda
Created August 1, 2012 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t-uda/3228320 to your computer and use it in GitHub Desktop.
Save t-uda/3228320 to your computer and use it in GitHub Desktop.
zsh global alias でエラー出力だけを楽々パイプする ref: http://qiita.com/items/986235bd1879692e54a1
alias -g L="|& $PAGER"
alias -g E='2>&1 > /dev/null'
$ g++ hoge.cpp E L
(エラー出力をページャで見る)
$ g++ hoge.cpp 2>&1 > /dev/null |& lv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment