Last active
October 13, 2015 23:58
-
-
Save soulston/4275812 to your computer and use it in GitHub Desktop.
.zshrc aliases
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
# ZSH_THEME="st333f" | |
# Set to this to use case-sensitive completion | |
# CASE_SENSITIVE="true" | |
# Comment this out to disable weekly auto-update checks | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment following line if you want to disable colors in ls | |
# DISABLE_LS_COLORS="true" | |
# Uncomment following line if you want to disable autosetting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment following line if you want red dots to be displayed while waiting for completion | |
# COMPLETION_WAITING_DOTS="true" | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
plugins=(git) | |
source $ZSH/oh-my-zsh.sh | |
# Customize to your needs... | |
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin | |
# Turn off auto complete | |
unsetopt correct_all | |
# ------------------------------------------------------------------- | |
# Aliases | |
# ------------------------------------------------------------------- | |
alias ll='ls -la' | |
alias lsd='ls -d */' | |
# ------------------------------------------------------------------- | |
# Servers | |
# ------------------------------------------------------------------- | |
# LN | |
alias dev1='ssh [email protected]' | |
alias dev2='ssh [email protected]' | |
# ------------------------------------------------------------------- | |
# Local setup | |
# ------------------------------------------------------------------- | |
alias cddev='cd ~/Sites/Development' | |
alias cdln='cd ~/Sites/Development/LexisNexisSites' | |
# ------------------------------------------------------------------- | |
# Git | |
# ------------------------------------------------------------------- | |
alias ga='git add' | |
alias gpush='git push' | |
alias gl='git log' | |
alias glp="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr %an)%Creset' --abbrev-commit --date=relative" | |
alias gll='git log --graph --decorate --pretty=oneline --abbrev-commit' | |
alias gs='git status' | |
alias gd='git diff' | |
alias gcm='git commit -m' | |
alias gm='git commit -m' | |
alias gma='git commit -am' | |
alias gb='git branch' | |
alias gc='git checkout' | |
alias gra='git remote add' | |
alias grr='git remote rm' | |
alias gpull='git pull' | |
alias gfet='git fetch' | |
alias gmer='git merge' | |
alias gcl='git clone' | |
alias gta='git tag -a -m' | |
alias gf='git reflog' | |
alias gau='git add -u' | |
# ------------------------------------------------------------------- | |
# Drupal | |
# ------------------------------------------------------------------- | |
alias d='drush' | |
alias dfl='drush fl' | |
alias dca='drush cc all' | |
# Drupal grep pml function | |
drupalGrepPml() | |
{ | |
drush pml | grep $1 | |
} | |
alias dml='drupalGrepPml' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment