Created
August 1, 2012 16:17
-
-
Save t-uda/3228320 to your computer and use it in GitHub Desktop.
zsh global alias でエラー出力だけを楽々パイプする ref: http://qiita.com/items/986235bd1879692e54a1
This file contains 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
alias -g L="|& $PAGER" | |
alias -g E='2>&1 > /dev/null' |
This file contains 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
$ g++ hoge.cpp E L | |
(エラー出力をページャで見る) |
This file contains 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
$ 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