Shammer's Philosophy

My private adversaria

bash_profile aliases

I use tshark command for analyzing captured packets. But this command output has no time-format. My favorite option of tshark time-format is "-t ad", but it is boring to add this option every time. I add the alias to $HOME/.bash_profile as below.

alias ccl64='ccl64 -K :UTF-8'
alias ccl='ccl -K :UTF-8'
alias tshark='tshark -t ad'

if [ -e /Applications/Emacs.app/Contents/MacOS/Emacs ] ; then
    alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs -nw'
fi

I use not only Mac, but also Linux. The alias of emacs is different which OS I used. So emacs alias is defined with if sentence.