Question on .bashrc
I used Solaris for awhile and had my .cshrc customized with different paths, prompt, and short commands such as cd/ for cd /, cd.. for cd .. , lsl for ls -l | more, lsa for ls -a | more ... and so on.
Since then I totally forget exactly how to word them in the file. Can anyone please post examples for your .bashrc, .cshrc, .xxrc files |
just use alias
alias ll='ls -l' etc... |
The only difference on setting aliases in csh and bash, is this:
Bash: alias ls = 'ls -la | less' Csh: alias ls 'ls -la | less' Cshell simply does not require an equals sign between the alias name and the alias value. P.S. If you like C Shell, you don't have to stick with bash... Just change your shell. |
All times are GMT -5. The time now is 11:47 AM. |