Guest User

Untitled

a guest
May 27th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. source ~/.profile
  2.  
  3. hash -d ws=$PLTHOME/collects/web-server
  4. hash -d drdr=$PLTHOME/collects/meta/drdr
  5. hash -d work=$PROJS
  6. hash -d papers=$PROJS/papers
  7. hash -d planet=$SVNROOT/github.jeapostrophe.planet
  8.  
  9. setopt autopushd pushdminus pushdsilent pushdtohome
  10.  
  11. autoload -U zmv
  12.  
  13. export PS1="%S%~%s %# "
  14. TPS1="%~ %# "
  15. RECENTFILES=8
  16.  
  17. precmd () {print -Pn "\e]0;$TPS1\a"}
  18. preexec () {print -Pn "\e]0;$TPS1 $2\a"}
  19.  
  20. chpwd () {
  21. # Save what directory we are in for the future
  22. dirs -l >! ~/.zdirs # added -l
  23. # Show recently modified files
  24. ls -t | head -$RECENTFILES | xargs ls -d
  25. }
  26.  
  27. if [[ -f ~/.zdirs ]] && [[ ${#dirstack[*]} -eq 0 ]]; then
  28. dirstack=( $(< ~/.zdirs) )
  29. popd
  30. fi
  31.  
  32. c () {
  33. if [ "$1" = "" ] ; then
  34. dirs -v
  35. else
  36. cd ~$1
  37. fi
  38. }
Add Comment
Please, Sign In to add comment