/ functions / cdl.bash
cdl.bash
 1  . __log.bash
 2  
 3  cdl () 
 4  { 
 5      __log "args: $@";
 6      if [[ $# -gt 0 ]] ; then
 7  	path="$1"
 8          if [[ -f "$1" ]] ; then
 9              path=`dirname "$1"`
10          fi
11      else
12  	path="$HOME"
13      fi
14      if cd "$path" ; then
15          ls --color=auto -alFh
16      fi
17  }