修改~/.bashrc
vim ~/.bashrc
然后在里面加入下面的代码
cdls() {
cd "${1}";
ls;
}
alias cd='cdls'
保存退出后
source ~/.bashrc
修改~/.bashrc
vim ~/.bashrc
然后在里面加入下面的代码
cdls() {
cd "${1}";
ls;
}
alias cd='cdls'
保存退出后
source ~/.bashrc