Created
September 15, 2017 05:38
-
-
Save nikkanetiya/63f46bed75d6fef4377e540cfcd6600b to your computer and use it in GitHub Desktop.
My Bash Aliases
This file contains 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
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 ../.." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment