Advertisement
Guest User

ZSHRC

a guest
May 1st, 2012
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.66 KB | None | 0 0
  1. # The following lines were added by compinstall
  2.  
  3. zstyle ':completion:*' completer _complete _ignored
  4. zstyle :compinstall filename '/home/eddie/.zshrc'
  5.  
  6. autoload -Uz compinit
  7. compinit
  8. # End of lines added by compinstall
  9. # Lines configured by zsh-newuser-install
  10. HISTFILE=~/.histfile
  11. HISTSIZE=1000
  12. SAVEHIST=1000
  13. setopt appendhistory autocd extendedglob
  14. # End of lines configured by zsh-newuser-install
  15. #Color table from: http://www.understudy.net/custom.html
  16. fg_black=%{$'\e[0;30m'%}
  17. fg_red=%{$'\e[0;31m'%}
  18. fg_green=%{$'\e[0;32m'%}
  19. fg_brown=%{$'\e[0;33m'%}
  20. fg_blue=%{$'\e[0;34m'%}
  21. fg_purple=%{$'\e[0;35m'%}
  22. fg_cyan=%{$'\e[0;36m'%}
  23. fg_lgray=%{$'\e[0;37m'%}
  24. fg_dgray=%{$'\e[1;30m'%}
  25. fg_lred=%{$'\e[1;31m'%}
  26. fg_lgreen=%{$'\e[1;32m'%}
  27. fg_yellow=%{$'\e[1;33m'%}
  28. fg_lblue=%{$'\e[1;34m'%}
  29. fg_pink=%{$'\e[1;35m'%}
  30. fg_lcyan=%{$'\e[1;36m'%}
  31. fg_white=%{$'\e[1;37m'%}
  32. #Text Background Colors
  33. bg_red=%{$'\e[0;41m'%}
  34. bg_green=%{$'\e[0;42m'%}
  35. bg_brown=%{$'\e[0;43m'%}
  36. bg_blue=%{$'\e[0;44m'%}
  37. bg_purple=%{$'\e[0;45m'%}
  38. bg_cyan=%{$'\e[0;46m'%}
  39. bg_gray=%{$'\e[0;47m'%}
  40. #Attributes
  41. at_normal=%{$'\e[0m'%}
  42. at_bold=%{$'\e[1m'%}
  43. at_italics=%{$'\e[3m'%}
  44. at_underl=%{$'\e[4m'%}
  45. at_blink=%{$'\e[5m'%}
  46. at_outline=%{$'\e[6m'%}
  47. at_reverse=%{$'\e[7m'%}
  48. at_nondisp=%{$'\e[8m'%}
  49. at_strike=%{$'\e[9m'%}
  50. at_boldoff=%{$'\e[22m'%}
  51. at_italicsoff=%{$'\e[23m'%}
  52. at_underloff=%{$'\e[24m'%}
  53. at_blinkoff=%{$'\e[25m'%}
  54. at_reverseoff=%{$'\e[27m'%}
  55. at_strikeoff=%{$'\e[29m'%}
  56.  
  57.  
  58. PROMPT="
  59. ${fg_lgreen}%n@${at_underl}%m${at_underloff}${fg_white}[${fg_cyan}%~${fg_white}]
  60. [${fg_green}%T${fg_white}]:${at_normal}"
  61.  
  62. #Set the auto completion on
  63. autoload -U compinit
  64. compinit
  65.  
  66. #Lets set some options
  67. setopt correctall
  68. setopt autocd
  69. setopt auto_resume
  70.  
  71. ## Enables the extgended globbing features
  72. setopt extendedglob
  73.  
  74. #Set some ZSH styles
  75. zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
  76. zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
  77.  
  78. HISTFILE=~/.zsh-histfile
  79. HISTSIZE=1000
  80. SAVEHIST=1000
  81.  
  82. #Aliases
  83. ##ls, the common ones I use a lot shortened for rapid fire usage
  84. alias ls='ls --color' #I like color
  85. alias l='ls -lFh'     #size,show type,human readable
  86. alias la='ls -lAFh'   #long list,show almost all,show type,human readable
  87. alias lr='ls -tRFh'   #sorted by date,recursive,show type,human readable
  88. alias lt='ls -ltFh'   #long list,sorted by date,show type,human readable
  89.  
  90. ##cd, because typing the backslash is ALOT of work!!
  91. alias .='cd ../'
  92. alias ..='cd ../../'
  93. alias ...='cd ../../../'
  94. alias ....='cd ../../../../'
  95.  
  96. # Screen aliases - add a new screen , or entire session, name it, then ssh to the host
  97. alias sshost='screen -t HOST shost'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement