SPUG:~damian/bin scripts. [Offtopic]

Adam Monsen adamm at wazamatta.com
Wed Jan 22 01:05:35 CST 2003


Geoffrey & Kristin Grosenbach wrote:
[...]
> # .cshrc
> alias cd 'cd \!*; ls'

This is a great... every time I cd into a directory I of course type 
ls<CR>. Any idea how to get it to work in bash? I tried this:

# .bashrc
alias cd='cd $*; ls'

Unfortunately, bash doesn't execute the 'cd', my guess is to avoid 
infinite recursion.

[...]

-- 
Adam Monsen




More information about the spug-list mailing list