Advertisement
Guest User

Untitled

a guest
May 30th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. #Because I like my shell to be polite...
  2. h=`date +%H`
  3.  
  4. if [ $h -lt 12 ]; then
  5. g='Good morning'
  6. elif [ $h -lt 18 ]; then
  7. g='Good afternoon'
  8. else
  9. g='Good evening'
  10. fi
  11.  
  12. echo "$g $USER!"
  13.  
  14. ####################################
  15. # Plugins
  16. ####################################
  17.  
  18. #source ~/.zsh/antigen/antigen.zsh
  19. source "${HOME}/.zsh/zgen/zgen.zsh"
  20.  
  21. saved=false
  22.  
  23. #if ! zgen saved; then
  24. echo "Creating a zgen save"
  25. zgen oh-my-zsh
  26. zgen load rhysd/zsh-bundle-exec
  27. zgen oh-my-zsh plugins/git
  28. zgen oh-my-zsh plugins/ruby
  29. zgen oh-my-zsh plugins/heroku
  30. zgen oh-my-zsh plugins/command-not-found
  31.  
  32. zgen load djui/alias-tips
  33. zgen load StackExchange/blackbox
  34. zgen load ascii-soup/zsh-url-highlighter
  35. zgen load Tarrasch/zsh-colors
  36. zgen load tarruda/zsh-autosuggestions
  37. zgen load djui/alias-tips
  38.  
  39. # Theme
  40. zgen oh-my-zsh themes/fox
  41.  
  42. zgen load zsh-users/zsh-syntax-highlighting
  43.  
  44. # nicoulaj's moar completion files for zsh
  45. zgen load zsh-users/zsh-completions src
  46.  
  47. # ZSH port of Fish shell's history search feature.
  48. zgen load zsh-users/zsh-history-substring-search
  49.  
  50. # Syntax highlighting bundle.
  51. zgen load zsh-users/zsh-syntax-highlighting
  52.  
  53. zgen save
  54. #fi
  55.  
  56. ####################################
  57. # END Plugins
  58. ####################################
  59.  
  60. # Beeps are annoying
  61. setopt NO_BEEP
  62.  
  63. setopt VI
  64.  
  65. #source $ZSH/oh-my-zsh.sh
  66.  
  67. # ################################
  68. # PATH
  69. # ################################
  70.  
  71. export PATH="/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games::$HOME/bin"
  72.  
  73. export PATH="$HOME/.bin:$PATH"
  74. export NODE_PATH="/lib"
  75.  
  76. # If using composer to manage php dependencies, add it to the path
  77. if [ -d "$HOME/.composer" ]; then
  78. export PATH="$PATH:$HOME/.composer/vendor/bin"
  79. fi
  80.  
  81. # If using rbenv for managing ruby versions, add it to the path
  82. if [ -d "$HOME/.rbenv" ]; then
  83. export PATH="$PATH:$HOME/.rbenv/bin"
  84. export PATH="$PATH:$HOME/.rbenv/plugins/ruby-build/bin"
  85. export PATH="$PATH:$HOME/.rbenv/shims"
  86. export PATH="$PATH:$HOME/.rbenv/bin"
  87. fi
  88.  
  89. # If working on a nitrous box and using autoparts as a package manager, add 'parts' to the path
  90. if [ -d "$HOME/.parts" ]; then
  91. export PATH="$PATH:$HOME/.parts/bin"
  92. export PATH="$PATH:$HOME/.parts/sbin"
  93. export PATH="$PATH:$HOME/.parts/autoparts/bin"
  94. fi
  95.  
  96. # If ruby gems installed in a .gem folder add them to the path
  97. # Version 1.9.1 in this case
  98. if [ -d "$HOME/.gem/ruby" ]; then
  99. export PATH="$PATH:$HOME/.gem/ruby/1.9.1/bin"
  100. fi
  101.  
  102. export PATH="$PATH:$HOME/.tim/"
  103.  
  104. # export MANPATH="/usr/local/man:$MANPATH"
  105.  
  106. # You may need to manually set your language environment
  107. # export LANG=en_US.UTF-8
  108.  
  109. export EDITOR=vim
  110. [ -z "$TMUX" ] && export TERM=xterm-256color
  111.  
  112. # ssh
  113. export SSH_KEY_PATH="~/.ssh/rsa_id"
  114.  
  115. # Aliases
  116.  
  117. # To add new aliases or view current ones, go where they live--in the custom folder:
  118. alias zalias='vim ~/.zsh/aliases.zsh'
  119.  
  120. [ -e "${HOME}/.zsh/aliases.zsh" ] && source "${HOME}/.zsh/aliases.zsh"
  121.  
  122. # Start rbenv
  123. if [ -d "$HOME/.rbenv" ]; then
  124. eval "$(rbenv init -)"
  125. fi
  126.  
  127.  
  128. ### Added by the Heroku Toolbelt
  129. export PATH="/usr/local/heroku/bin:$PATH"
  130.  
  131. #legendary
  132. echo "Syncing up your files with dropbox"
  133. dropbox start
  134.  
  135. #wd() {
  136. #. /home/stephen/bin/wd/wd.sh
  137. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement