Skip to content
Snippets Groups Projects
Commit ac25ddb6 authored by eisenale's avatar eisenale
Browse files

Added functionality to cs function

parent c7c1111d
Branches master
No related tags found
No related merge requests found
function cs {
cd $1
ls
if [ "$#" = "0" ]; then
cd
ls
elif [ "$#" = "1" ]; then
cd $1;
ls
elif [ "$#" = "2" ]; then
cd $2;
ls $1
fi
}
alias ..='cd ..'
alias ...='cd ../..'
......
function cs() {
cd $1;
ls
if [ "$#" = "0" ]; then
cd
ls
elif [ "$#" = "1" ]; then
cd $1;
ls
elif [ "$#" = "2" ]; then
cd $2;
ls $1
fi
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment