Skip to content

Instantly share code, notes, and snippets.

@foxish
Last active December 14, 2015 20:09
Show Gist options
  • Save foxish/5141988 to your computer and use it in GitHub Desktop.
Save foxish/5141988 to your computer and use it in GitHub Desktop.
Tcsh prompt: Display last 2 elements of current directory as prompt
alias precmd 'set prompt="%c2 "' #displays last 2 elements of filepath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment