2008/09/11

bash / csh 奮戰筆記

寫法上有點不同

> vi .bashrc

umask 022

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ll='ls -l'
alias lm='ls -al|more'
alias h='history'


>vi .cshrc

umask 022

alias rm 'rm -i'
alias cp 'cp -i'
alias mv 'mv -i'
alias ll 'ls -l'
alias lm 'ls -al|more'
alias h 'history'



參考文章:
1. Bash的環境設定
2. 新增你的慣用指令~/.bashrc
3. Appendix K. A Sample .bashrc File
4. bash, tcsh shell variable experience

No comments:

Post a Comment

##EasyReadMore##

被我監控的 Blog