Skip to content

Instantly share code, notes, and snippets.

@johanek
Created December 17, 2012 15:10
Show Gist options
  • Save johanek/4318990 to your computer and use it in GitHub Desktop.
Save johanek/4318990 to your computer and use it in GitHub Desktop.
display README when changing directory
tcsh:
alias cwdcmd "if (-e README) cat README fi"
bash:
PROMPT_COMMAND="[[ -e README ]] && cat README"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment