2 ms·
By the way, you don't have contact details in your profile, so I thought I'd mention here an answer to a question you asked four years ago. You asked about doi
by ColinWright 6y ago
By the way, you don't have contact details in your profile, so I thought I'd mention here an answer to a question you asked four years ago. You asked about doing an "ls" when you "cd", and someone gave you this:
cd_(){
cd $*
ls
}
alias cd=cd_
That kills you if the directory has thousands of files, and especially if you're working over a slow connection. You can modify it like this:
cd_(){
cd $*
ls | head -n100 | column
}
alias cd=cd_
That then only lists up to 100 files. You can further extend it to put "..." if there are more files, but I'll leave that for another time.
- rajasimon 6y agoAh that's the great tip. thanks.