Here are some mf my most used shell aliases and functions. These are all zsh
oriented so your mileage with bash
may vary.
alias aa="php artisan"
alias v="vagrant"
alias sn="subl -n"
alias c="composer"
alias ::="vendor/bin/phpunit"
alias ::-="vendor/bin/phpunit --filter"
alias g="git"
alias dockerm="docker-machine"
alias dockerc="docker-compose"
alias nah="git reset --hard && git clean -fd"
alias cls="clear"
alias shrug="echo '¯\_(ツ)_/¯' | pbcopy"
alias gitleader="git shortlog -sn"
alias dockit="docker run -it --rm -v `pwd`:/workspace debian/jessie bash"
function gcd {
REPO=$1
CLONEPATH=$2
if [ -z $CLONEPATH ]; then
CLONEPATH=${$(basename $1)/.git/}
fi
git clone $REPO $CLONEPATH
cd $CLONEPATH
}
function flushdns {
sudo killall -HUP mDNSResponder
}
function getip {
curl -sL icanhazip.com
}
function pyserve {
python -m SimpleHTTPServer $1
}