Last active
December 1, 2020 19:09
-
-
Save themsaid/ac0af4f66d004b5448bff3a8d8aa9168 to your computer and use it in GitHub Desktop.
My .zshrc
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
alias art="php artisan" | |
alias dracarys="git reset --hard && git clean -df" | |
alias phpfix="php php-cs-fixer.phar fix" | |
alias weather='curl -s wttr.in/Hurghada | sed -n "2,7p"' | |
alias usd='curl -s "https://www.google.com/finance/converter?a=1&from=USD&to=EGP" | LC_CTYPE=C sed "/res/!d;s/<[^>]*>//g"' | |
alias shrug="echo '¯\_(ツ)_/¯' | pbcopy"; | |
alias fight="echo '(ง'̀-'́)ง' | pbcopy"; | |
alias happy="echo 'ᕕ( ᐛ )ᕗ' | pbcopy"; | |
# Commit all the current changes with a message | |
function comme { | |
git add --all | |
if (($# > 1)); then | |
params='' | |
for i in $*; | |
do | |
params=" $params $i" | |
done | |
git commit -m "$params" | |
else | |
git commit -m "$1" | |
fi | |
} | |
# Commit the current changes and push to the current branch | |
function pushme { | |
br=`git branch | grep "*"` | |
git add --all | |
if (($# > 1)); then | |
params='' | |
for i in $*; | |
do | |
params=" $params $i" | |
done | |
git commit -m "$params" | |
else | |
git commit -m "$1" | |
fi | |
git push origin ${br/* /} | |
} | |
# Checkout a git branch | |
function co { | |
git checkout "$1" | |
} | |
# Checkout a new git branch | |
function cob { | |
git checkout -b "$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I liked it, thanks bruh. 😍