Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. ┌─[shirish@debian] - [~/.oh-my-zsh/plugins] - [10199]
  2. └─[$] ll | grep colored
  3.  
  4. drwxr-xr-x 2 shirish shirish 4096 2015-12-30 14:27 colored-man-pages
  5.  
  6. ─[$] grep -Ev '#' .zshrc
  7.  
  8. export ZSH=/home/shirish/.oh-my-zsh
  9.  
  10. ZSH_THEME="duellj"
  11.  
  12. plugins=(last-working-dir)
  13.  
  14. export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/lib:/usr/local/include/SDL2"
  15.  
  16. source $ZSH/oh-my-zsh.sh
  17.  
  18. [$] grep -v '#' oh-my-zsh.sh
  19. if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
  20. env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
  21. fi
  22.  
  23.  
  24. fpath=($ZSH/functions $ZSH/completions $fpath)
  25.  
  26. autoload -U compaudit compinit
  27.  
  28. : ${ZSH_DISABLE_COMPFIX:=true}
  29.  
  30. if [[ -z "$ZSH_CUSTOM" ]]; then
  31. ZSH_CUSTOM="$ZSH/custom"
  32. fi
  33.  
  34. if [[ -z "$ZSH_CACHE_DIR" ]]; then
  35. ZSH_CACHE_DIR="$ZSH/cache"
  36. fi
  37.  
  38.  
  39. for config_file ($ZSH/lib/*.zsh); do
  40. custom_config_file="${ZSH_CUSTOM}/lib/${config_file:t}"
  41. [ -f "${custom_config_file}" ] && config_file=${custom_config_file}
  42. source $config_file
  43. done
  44.  
  45.  
  46. is_plugin() {
  47. local base_dir=$1
  48. local name=$2
  49. test -f $base_dir/plugins/$name/$name.plugin.zsh
  50. || test -f $base_dir/plugins/$name/_$name
  51. }
  52. for plugin ($plugins); do
  53. if is_plugin $ZSH_CUSTOM $plugin; then
  54. fpath=($ZSH_CUSTOM/plugins/$plugin $fpath)
  55. elif is_plugin $ZSH $plugin; then
  56. fpath=($ZSH/plugins/$plugin $fpath)
  57. fi
  58. done
  59.  
  60. if [[ "$OSTYPE" = darwin* ]]; then
  61. SHORT_HOST=$(scutil --get ComputerName 2>/dev/null) || SHORT_HOST=${HOST/.*/}
  62. else
  63. SHORT_HOST=${HOST/.*/}
  64. fi
  65.  
  66. if [ -z "$ZSH_COMPDUMP" ]; then
  67. ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
  68. fi
  69.  
  70. if [[ $ZSH_DISABLE_COMPFIX != true ]]; then
  71. if ! compaudit &>/dev/null; then
  72. handle_completion_insecurities
  73. else
  74. compinit -d "${ZSH_COMPDUMP}"
  75. fi
  76. else
  77. compinit -i -d "${ZSH_COMPDUMP}"
  78. fi
  79.  
  80. for plugin ($plugins); do
  81. if [ -f $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh ]; then
  82. source $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh
  83. elif [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then
  84. source $ZSH/plugins/$plugin/$plugin.plugin.zsh
  85. fi
  86. done
  87.  
  88. for config_file ($ZSH_CUSTOM/*.zsh(N)); do
  89. source $config_file
  90. done
  91. unset config_file
  92.  
  93. if [ "$ZSH_THEME" = "random" ]; then
  94. themes=($ZSH/themes/*zsh-theme)
  95. ((N=(RANDOM%N)+1))
  96. RANDOM_THEME=${themes[$N]}
  97. source "$RANDOM_THEME"
  98. echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
  99. else
  100. if [ ! "$ZSH_THEME" = "" ]; then
  101. if [ -f "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" ]; then
  102. source "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme"
  103. elif [ -f "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme" ]; then
  104. source "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme"
  105. else
  106. source "$ZSH/themes/$ZSH_THEME.zsh-theme"
  107. fi
  108. fi
  109. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement