Created
January 23, 2015 22:12
-
-
Save aire-con-gas/739c2d4e6cae2104d0ac to your computer and use it in GitHub Desktop.
My zshell presets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Executes commands at the start of an interactive session. | |
| # | |
| # Authors: | |
| # Sorin Ionescu <sorin.ionescu@gmail.com> | |
| # | |
| # Source Prezto. | |
| if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
| source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" | |
| fi | |
| # Customize to your needs... | |
| function foo() | |
| { | |
| TITLE=$*; | |
| export PROMPT_COMMAND='echo -ne "\033]0;$TITLE\007"' | |
| } | |
| export PATH="$PATH:$HOME/.rvm/bin:/usr/local/Cellar/mysql55/5.5.30/bin:$HOME/bin:$HOME/android_dev/sdk/platform-tools:$HOME/android_dev/sdk/tools" # Add RVM to PATH for scripting | |
| export JAVA_HOME="/usr/libexec/java_home" | |
| export JDK_HOME="/usr/libexec/java_home" | |
| export ANDROID_HOME="/Users/davehong/android_dev/sdk" | |
| export ANT_HOME="/usr/local/Cellar/ant/1.9.4/libexec" | |
| export PROMPT_COMMAND='echo -ne "\033]0;${PWD/#$HOME/~}\007"' | |
| alias ll='ls -la' | |
| alias devlog='tail -f log/development.log' | |
| alias mysqlstart='sudo /usr/local/mysql/bin/mysqld_safe &' | |
| alias mysqlstop='sudo /usr/local/mysql/bin/mysqladmin -u root -p shutdown' | |
| alias rake='noglob rake' | |
| alias gpl='git pull' | |
| alias gps='git push' | |
| alias gst='git status' | |
| alias gco='git checkout' | |
| alias gbr='git branch' | |
| alias be='bundle exec' | |
| alias tmuxn='tmux new -s' | |
| alias reattach='tmux attach-session -d -t' | |
| alias lstree='tree -d -L 2 -C' | |
| alias chad='bundle exec rake cache:expire_component_types_json' | |
| alias mandar='ctags -R --languages=ruby,javascript --exclude=.git --exclude=log . $(bundle list --paths)' | |
| alias clearswp='rm -f /var/tmp/*.swp /var/tmp/*.swo' | |
| defaults write -g ApplePressAndHoldEnabled -bool false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment