Guest User

Untitled

a guest
Jul 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #!/bin/zsh
  2.  
  3. # completion
  4. autoload -U compinit
  5. compinit
  6.  
  7. # correction
  8. setopt correctall
  9.  
  10. # correction
  11. setopt correctall
  12.  
  13. # prompt
  14. autoload -U promptinit
  15. promptinit
  16.  
  17. # History settings
  18. export HISTSIZE=2000
  19. export HISTFILE="$HOME/.history"
  20. export SAVEHIST=$HISTSIZE
  21. setopt hist_ignore_all_dups
  22. setopt hist_ignore_space
  23.  
  24. setopt autocd
  25. setopt extendedglob
  26.  
  27. setopt rm_star_wait
  28. setopt complete_in_word
  29.  
  30. # zsh modules
  31. # mathmatic evaluations
  32. zmodload zsh/mathfunc
  33.  
  34. setopt PROMPT_SUBST
  35. export fadebar="red"
  36. export userhost="white"
  37. export cwd="white"
  38. autoload -Uz prompt_special_chars
  39. prompt_special_chars
  40. PROMPT='%B%F{$fadebar}$schars[333]$schars[262]$schars[261]$schars[260]%B%F{$userhost}%K{$fadebar}%n@%m%b%k%f%F{$fadebar}%K{black}$schars[260]$schars[261]$schars[262]$schars[333]%b%f%k%F{$fadebar}%K{black}$schars[333]$schars[262]$schars[261]$schars[260] %{$(pwd|grep --color=always /)%${#PWD}G%} %# '
Add Comment
Please, Sign In to add comment