暂无描述

zshrc 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # Path to your oh-my-zsh configuration.
  2. ZSH=$HOME/.oh-my-zsh
  3. # Set name of the theme to load.
  4. # Look in ~/.oh-my-zsh/themes/
  5. # Optionally, if you set this to "random", it'll load a random theme each
  6. # time that oh-my-zsh is loaded.
  7. ZSH_THEME="clean"
  8. # Example aliases
  9. # alias zshconfig="mate ~/.zshrc"
  10. alias ohmyzsh="mate ~/.oh-my-zsh"
  11. # Set to this to use case-sensitive completion
  12. # CASE_SENSITIVE="true"
  13. # Comment this out to disable bi-weekly auto-update checks
  14. DISABLE_AUTO_UPDATE="true"
  15. # Uncomment to change how many often would you like to wait before auto-updates occur? (in days)
  16. # export UPDATE_ZSH_DAYS=13
  17. # Uncomment following line if you want to disable colors in ls
  18. # DISABLE_LS_COLORS="true"
  19. # Uncomment following line if you want to disable autosetting terminal title.
  20. DISABLE_AUTO_TITLE="true"
  21. # Uncomment following line if you want red dots to be displayed while waiting for completion
  22. COMPLETION_WAITING_DOTS="true"
  23. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  24. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  25. # Example format: plugins=(rails git textmate ruby lighthouse gem bundler brew)
  26. plugins=(git)
  27. source $ZSH/oh-my-zsh.sh
  28. # TextMate
  29. export TEXTMATE_PATH=/Applications/TextMate.app/Contents/Resources/mate
  30. mate () {
  31. $TEXTMATE_PATH $1 $2 $3 $4 $5 $6
  32. }
  33. export EDITOR="$TEXTMATE_PATH -w"
  34. export LC_CTYPE=en_US.UTF-8
  35. export EDITOR=pico
  36. # Mou
  37. alias mou="open /Applications/Mou.app"
  38. alias rails_notes="open /Applications/Mou.app ~/Dev/rails_notes/index.md"
  39. # Postgre App
  40. export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
  41. # Get the aliases and functions
  42. if [ -f ~/.bash_aliases ]; then
  43. . ~/.bash_aliases
  44. fi
  45. # [[ -s ~/.bashrc ]] && source ~/.bashrc
  46. PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
  47. # Start Avalanche project
  48. avalanche2_start (){
  49. # Open postgres app
  50. echo "Starting Postgre App"
  51. open /Applications/Postgres.app
  52. # Open project in texmate
  53. echo "Opening TextMate project"
  54. mate ~/dev/avalanche2
  55. cd ~/dev/avalanche2
  56. # start rails server
  57. echo "Starting Foreman server"
  58. cd ~/dev/avalanche2
  59. foreman start
  60. }
  61. # Open oh-my-zsh configurations in text mate
  62. alias zshell="mate ~/.zshrc"
  63. # SSH
  64. ssh_dev_machine () { ssh root@104.236.21.94 }
  65. ssh_gitlab () { ssh root@104.236.77.111 }
  66. # Gist
  67. source /usr/share/gist/gist.bash
  68. # teamocil autocomplete
  69. compctl -g '~/.teamocil/*(:t:r)' teamocil