-
~/.pythonstartup.py
とか適当に置く -
~/.zshrc
なり~/.bashrc
なりに以下を追記export PYTHONSTARTUP=${HOME}/.pythonstartup.py
-
インタラクティブシェルで補完が出来て
~/.python_history
に history 出るよ
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
## 普通に | |
echo 2 5 9 8 1 3 7 4 | sed 's/ /+/g' | bc | |
## 変態だと思ったがそうでもなかった | |
echo 2 5 9 8 1 3 7 4 | tr ' ' '\n' | awk '{sum = sum + $0} END{print sum}' |
NewerOlder