Last active
December 30, 2020 12:30
-
-
Save vsanrocha/f59261a759e014c1def8b065ae324ea3 to your computer and use it in GitHub Desktop.
Bash alias for improve performance
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
| alias 'al?'="nano ~/.zshrc" | |
| alias sshdial="ssh -i ~/.ssh/devel root@devel.dialhost.com.br" | |
| alias sshdev2="ssh -i ~/.ssh/id_rsa develdi0@devel.dialhost.com.br" | |
| alias sshstaging="ssh -i ~/.ssh/devel root@38.143.68.239" | |
| alias mongodb="sudo mongod --dbpath ~/data/db" | |
| alias gball='git checkout develop && git branch | grep -v '\''develop'\'' | xargs git branch -D' | |
| alias gfgp="git fetch && git pull" | |
| fuction aliass() { | |
| alias | grep "$1" | |
| } | |
| function gpfe(){ | |
| git push origin feature/#"$1" | |
| } | |
| function gpx(){ | |
| git push origin fix/#"$1" | |
| } | |
| function gph(){ | |
| git push origin hotfix/#"$1" | |
| } | |
| function gcbh() { | |
| git fetch && git checkout -b hotfix/#"$1" origin/master | |
| } | |
| function gcbf() { | |
| git fetch && git checkout -b feature/#"$1" origin/develop | |
| } | |
| function gcbx() { | |
| git fetch && git checkout -b fix/#"$1" origin/develop | |
| } | |
| function gcb() { | |
| git fetch && git checkout -b "$1"/#"$2" | |
| } | |
| function gagc() { | |
| git add "$1" && git commit -m "$2" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment