Last active
June 22, 2016 14:37
-
-
Save fff/6247006 to your computer and use it in GitHub Desktop.
show notifier alert
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
base_dir=`dirname $0` | |
alias ..='cd ..' | |
alias ...='.. && ..' | |
alias vi=vim | |
alias ga='git add' | |
alias gdf='git diff' | |
alias gs='git status' | |
alias gl='git pull' | |
alias glr='git pull --rebase' | |
alias glrp='git pull -r && git push' | |
alias glf='git pull --ff' | |
alias gfup='git fetch --all && git reset --hard origin/master' | |
alias gsl='git stash && git pull' | |
alias gp='git push' | |
alias gco='git checkout' | |
alias gci='git commit' | |
alias gcim='git commit -m' | |
alias gcl='git clean' | |
alias gca='git add . -A && git add . -u && git ci' | |
alias glg='git log' | |
alias gstp='git stash pop' | |
alias gsth='git stash' | |
alias gstl='git stash list' | |
alias grb='git rebase' | |
alias grst='git reset' | |
alias gt='git tag' | |
alias g=git | |
function _current_branch(){ | |
git branch |grep ^*|awk '{print$2}' | |
} | |
function _rebase_branch(){ | |
current=$(git branch |grep ^*|awk '{print$2}') | |
toRebase=${1:=master} | |
gco $toRebase && gl && gco $current && gl && grb $toRebase | |
} | |
alias grbm='_rebase_branch' | |
function gupa(){ | |
current=$(_current_branch) | |
git pull --all | |
git branch | grep -v '*' |xargs -I br sh -c 'git checkout br && echo pulling... && git pull -r' | |
gco $current | |
} | |
alias m=mvn | |
alias mnt='mvn -Dmaven.test.skip=true' | |
alias mi='mvn install' | |
alias mc='mvn clean' | |
alias mcc='mvn clean compile' | |
alias mt='mvn test' | |
alias mct='mvn clean test' | |
alias mci='mvn clean install' | |
alias mint='mvn install -Dmaven.test.skip=true' | |
alias mcint='mvn clean install -Dmaven.test.skip=true' | |
alias md='mvn dependency' | |
alias mdl='mvn dependency:list' | |
alias mda='mvn dependency:analyze' | |
alias mdt='mvn dependency:tree' | |
alias rmfce='rm -rf' | |
alias fd='find' | |
alias ra=rails | |
alias rk=rake | |
alias jp='ps x|grep jboss' | |
alias dum='du -d 1 -m|sort -n -k1' | |
alias vu='vagrant up' | |
alias vss='vagrant ssh' | |
alias vs='vagrant status' | |
alias vbl='vagrant box list' | |
# http://brandonb.io/use-iterm2-with-os-x-notification-center | |
function groowl() { | |
terminal-notifier -activate com.googlecode.iterm2 -title "Pssssst !!" -subtitle "A message from your shell:" -message "$@" | |
say "$@" | |
} | |
function growl() { | |
terminal-notifier -activate com.googlecode.iterm2 -title "Pssssst !!" -subtitle "A message from your shell:" -message "$@" | |
} | |
alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl' | |
function bupdate() { | |
find . -name '.git' -d ${1:=2} |xargs -I % sh -c 'cd %/..;printf "\033[1;4m`pwd`\033[0m\n";[ -d .git/svn/refs ] && git svn rebase || git pull --rebase || printf "\e[0;31m - FAILURE!!!\033[0m\n"' | |
} | |
alias ifconfig-Active="ifconfig | pcregrep -M -o '^[^\t:]+:([^\n]|\n\t)*status: active'" | |
function maven-reset() { | |
if [ -e ~/.m2/settings.xml.bak ]; then | |
mv -v ~/.m2/settings.xml.bak ~/.m2/settings.xml | |
mv -v ~/.m2/settings-security.xml.bak ~/.m2/settings-security.xml | |
else | |
mv -v ~/.m2/settings.xml ~/.m2/settings.xml.bak | |
mv -v ~/.m2/settings-security.xml ~/.m2/settings-security.xml.bak | |
fi | |
} | |
function ht() { | |
open http://${1:=localhost}:${2:=80} | |
} | |
function hts() { | |
open https://${1:=localhost}:${2:=443} | |
} | |
function valias() { | |
suffix='' | |
if [ ! -z $1 ]; then | |
suffix="_$1" | |
fi | |
vi $base_dir/.bash_aliases$suffix | |
echo re-sourcing... | |
source ~/.zshrc | |
} | |
alias dk=docker | |
alias dkm=docker-machine | |
alias dks='docker ps' | |
alias dksa='docker ps -a' | |
alias dki='docker images' | |
alias dkmi='eval "$(docker-machine env ock)"' | |
function dkip() { | |
docker inspect --format '{{ .NetworkSettings.IPAddress }}' "$@" | |
} | |
alias mongods='mongod --config /usr/local/etc/mongod.conf' | |
alias gr=grunt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment