Skip to content

Instantly share code, notes, and snippets.

@amosrivera
Last active August 29, 2015 14:18
Show Gist options
  • Save amosrivera/cbe9164806014d300601 to your computer and use it in GitHub Desktop.
Save amosrivera/cbe9164806014d300601 to your computer and use it in GitHub Desktop.
Cd && ls every time you cd into a directory.
# source: http://unix.stackexchange.com/a/20413
# prevent loading the alias if it's not an interactive shell
[ -z "$PS1" ] && return
function cd {
builtin cd "$@" && ls -F
}
@paulomcnally
Copy link

Lo agregue en el .bashrc en la mac y no funciona.

@amosrivera
Copy link
Author

@paulomcnally asumo que recargaste la configuration(?)

. ~/.bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment