Guest User

Untitled

a guest
Feb 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. # Path to your oh-my-zsh configuration.
  2. export ZSH=$HOME/.oh-my-zsh
  3.  
  4. # Set to the name theme to load.
  5. # Look in ~/.oh-my-zsh/themes/
  6. export ZSH_THEME="robbyrussell"
  7.  
  8. # Set to this to use case-sensitive completion
  9. # export CASE_SENSITIVE="true"
  10.  
  11. # Comment this out to disable weekly auto-update checks
  12. # export DISABLE_AUTO_UPDATE="true"
  13.  
  14. # Uncomment following line if you want to disable colors in ls
  15. # export DISABLE_LS_COLORS="true"
  16.  
  17. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  18. # Example format: plugins=(rails git textmate ruby lighthouse)
  19. plugins=(git rails3 ruby brew bundler gem)
  20.  
  21. source $ZSH/oh-my-zsh.sh
  22.  
  23. # Customize to your needs...
  24.  
  25. ###
  26. # Shortcut to projects directory: you can replace 'p' with your favorite word/character
  27. #
  28.  
  29. PROJECTS_DIR="/Users/guille/code"
  30. p() {
  31. PROJECT_NAME="$1";
  32. cd "$PROJECTS_DIR/$PROJECT_NAME";
  33. }
  34.  
  35. _projects_list() {
  36. reply=($(ls $PROJECTS_DIR))
  37. }
  38.  
  39. compctl -K _projects_list p
  40.  
  41. ###
  42. # Autocompletes apps after typing --app on the command line
  43. #
  44.  
  45. _heroku_apps() {
  46. reply=($(heroku list | awk {'print $1'}))
  47. }
  48.  
  49. compctl -x 's[--app],c[-1,--app]' -K _heroku_apps -- heroku
  50.  
  51. export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
  52. export NODE_PATH=/usr/local/lib/node
  53.  
  54. alias ls="ls -G"
  55. git_prompt() {
  56. ref=$(git symbolic-ref HEAD 2> /dev/null | cut -d'/' -f3) || return
  57. if test -n "$ref"; then
  58. echo "[$ref]"
  59. fi
  60. }
  61. export PROMPT='%~%{$fg[green]%}$(git_prompt)%{$reset_color%} %% '
  62.  
  63.  
  64. [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
  65.  
  66. export EC2_HOME=~/.ec2
  67. export PATH=$PATH:$EC2_HOME/bin
  68. export EC2_PRIVATE_KEY=`ls $EC2_HOME/pk-*.pem`
  69. export EC2_CERT=`ls $EC2_HOME/cert-*.pem`
  70. export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home/
Add Comment
Please, Sign In to add comment