My Bash Aliases
function pushme {
br=`git branch | grep "*"`
params=''
for i in $*;
do
params=" $params $d$i"
done
git add --all
git commit -m "$params"
git push origin ${br/* /}
}
function gcm {
br=`git branch | grep "*"`
params=''
for i in $*;
do
params=" $params $d$i"
done
git add --all
git commit -m "$params"
}
function gpush {
br=`git branch | grep "*"`
git push origin ${br/* /}
}
function routes()
{
if [ $# -eq 0 ]; then
php artisan route:list
else
php artisan route:list | grep ${1}
fi
}
function mvp {
params=''
for i in $*;
do
params="$params$d$i"
done
cd ~/Sites/"$params"
}
function pa {
if [ $# -eq 0 ]; then
php artisan
else
params=''
for i in $*;
do
params=" $params $d$i"
done
php artisan $params
fi
}
function art {
php artisan "$@"
}
alias serve='php artisan serve'
alias envoy="~/.composer/vendor/bin/envoy"
alias weather='curl -s wttr.in/Rajkot | sed -n "1,7p"'
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gss="git status -s"
alias nah='git reset --hard;git clean -df'
alias over="exit;exit;"
alias nhot="npm run hot"
alias ndev="npm run dev"
alias c="reset"
alias ..="cd .."
alias ...="cd ../.."