Skip to content

Instantly share code, notes, and snippets.

@jasdev
Created December 14, 2012 08:37
Show Gist options
  • Select an option

  • Save jasdev/4283671 to your computer and use it in GitHub Desktop.

Select an option

Save jasdev/4283671 to your computer and use it in GitHub Desktop.
cdls() {
if [ -z "$1" ]; then
cd && ls
else
cd "$*" && ls
fi
}
alias cd=cdls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment