Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. setopt prompt_percent prompt_subst
  2. autoload colors zsh/terminfo
  3. colors
  4.  
  5.  
  6. for color in RED GREEN YELLOW BLUE MAGENTA WHITE BLACK CYAN; do
  7. eval CL_$color='%{$fg[${(L)color}]%}'
  8. eval CL_BOLD_$color='%{$fg_bold[${(L)color}]%}'
  9. done
  10.  
  11. CL_RESET="%{${reset_color}%}";
  12.  
  13. PR_PREFIX="${CL_RED}λ${CL_RESET}"
  14. PR_USERNAME="%n"
  15. PR_HOSTNAME="%m"
  16. PR_RET="%(?..[${CL_RED}%?${CL_RESET}])"
  17. PR_PWD="%~"
  18.  
  19. if [[ `hostname -s` != "alive-macbookpro" ]]
  20. then
  21. export PS1="${PR_PREFIX} ${PR_HOSTNAME}${PR_RET}: "
  22. else
  23. export PS1="${PR_PREFIX} "
  24. fi
  25.  
  26. export RPS1='[$PR_PWD]'
  27. export PS2='%_>' # default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement