RiptideTempora

.bashrc function (cd + ls)

Feb 19th, 2013
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 KB | None | 0 0
  1. # Pretty self-explanatory. Add to .bashrc to be lazy
  2. cl()
  3. {
  4.   if [ -z $2 ]
  5.   then
  6.     cd $1 && ls -lah
  7.   else
  8.     cd $1 && ls $2
  9.   fi
  10. }
Advertisement
Add Comment
Please, Sign In to add comment