It is really cubersome to change directories using cd and the again do an ls or an ll. I noticed that more than 80 % of the times, I am always doing a ll after my cd. So my question is how to write a c shell script to do this.
Whenever a cd is done, can the c shell be commanded to also do a ll automatically ?
It is really cubersome to change directories using cd and the again do an
Share
No need for a script, just make a simple alias definition:
alias cd="cd $1; ll "alias cd cd \!:1\; llNote the leading space (” “) in the bash version, it prevents the result to be alias expanded again. So it prevents loops.