Guest User

Untitled

a guest
Nov 24th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. # Path to oh-my-zsh configuration.
  2. export DISABLE_AUTO_UPDATE=true
  3. export DISABLE_AUTO_TITLE=true
  4.  
  5. export ZSH=$HOME/.oh-my-zsh
  6. export ZSH_THEME="machuga"
  7.  
  8.  
  9. # Setup paths
  10. export PATH=/usr/local/bin:/Users/machuga/.rvm/bin:/usr/bin:/opt/local/bin:/opt/local/sbin:/Users/machuga/bin:.:$PATH
  11.  
  12. # Load oh-my-zsh plugins
  13. plugins=(git rvm ruby)
  14.  
  15. source $ZSH/oh-my-zsh.sh
  16.  
  17. # Environment variables
  18. export EDITOR="vim"
  19. export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"
  20. export GREP_OPTIONS="--color"
  21. export ACK_COLOR_MATCH="red"
  22. export WORDCHARS='*?[]~&;!$%^<>'
  23.  
  24. # Aliases
  25. alias mysql=/usr/local/mysql/bin/mysql
  26. alias mysqladmin=/usr/local/mysql/bin/mysqladmin
  27.  
  28. alias la="ls -la"
  29. alias vi="mvim -v"
  30. alias vim="mvim -v"
  31. alias gvim='/Applications/MacVim.app/Contents/MacOS/Vim -g'
  32.  
  33. alias start_pgsql="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
  34. alias stop_pgsql="pg_ctl -D /usr/local/var/postgres stop -s -m fast"
  35.  
  36. alias start_mongo="mongod run --config /usr/local/Cellar/mongodb/2.0.2-x86_64/mongod.conf"
  37.  
  38. # Git Aliases
  39. alias gs="git status"
  40. alias gb="git branch"
  41. alias ga="git add"
  42. alias gaa="git add -A"
  43. alias gco="git checkout"
  44. alias gcam="git commit -a -m"
  45. alias gffs="git flow feature start"
  46. alias gfff="git flow feature finish"
  47. alias gpusho="git push origin"
  48. alias gpullo="git pull origin"
  49. alias gpod="git push origin develop"
  50.  
  51. alias tail_apache="tail -f /var/log/apache2/error_log | perl -pe 's/\[[a-zA-Z0-9 :\.]+\]/\e[1;31;m$&\e[0m/g'"
  52. alias tail_phpar="tail -f ~/Sites/perfectpetmatch/dashboard/fuel/app/logs/phpar.log | perl -pe 's/\(Time:\s+([a-zA-Z0-9 :\.]+)\)/\e[1;31;m$&\e[0m/g'"
  53.  
  54. alias edit_vhosts="vi /etc/apache2/extra/httpd-vhosts.conf"
  55.  
  56. alias php5-4-s="php -S localhost:8888"
  57.  
  58. alias clojure="rlwrap clj"
  59.  
  60. # Less Colors for Man Pages
  61. export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
  62. export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
  63. export LESS_TERMCAP_me=$'\E[0m' # end mode
  64. export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
  65. export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
  66. export LESS_TERMCAP_ue=$'\E[0m' # end underline
  67. export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
  68.  
  69.  
  70. # Set default email for Rails
  71. export DIGITELL_USERNAME="mmachuga@digitellinc.com"
  72. export DIGITELL_PASSWORD="maqua11machm"
  73. export LARAVEL_ENV="test"
  74.  
  75. # Function for making PDF versions of man pages
  76. function pman() {
  77. man $1 -t | open -f -a Preview
  78. }
  79.  
  80. # This function jsonify's something or another, need to look into it
  81. function pj() {
  82. python -mjson.tool
  83. }
  84.  
  85. if [ -f `brew --prefix`/etc/autojump ]; then
  86. . `brew --prefix`/etc/autojump
  87. fi
  88.  
  89. PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
Add Comment
Please, Sign In to add comment