LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question on .bashrc (https://www.linuxquestions.org/questions/linux-newbie-8/question-on-bashrc-24595/)

Fluke 06-29-2002 07:54 AM

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

acid_kewpie 06-29-2002 09:56 AM

just use alias

alias ll='ls -l'

etc...

sewer_monkey 06-29-2002 01:40 PM

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.