Created
January 5, 2022 19:10
-
-
Save scythargon/8034d855b7327bb5cf9ea2bbcafb4189 to your computer and use it in GitHub Desktop.
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
gc(){ | |
git add . && git commit -am "$@" | |
} | |
alias "pg=ping 8.8.8.8" | |
gcp(){ | |
git add . | |
git commit -am "$@" && git push | |
} | |
gcpp(){ | |
git add . | |
git commit -am "$@" && git pull --rebase && git push | |
} | |
alias py="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'" | |
alias py3="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'" | |
alias "gs=git status && echo && echo branches: && git branch && echo && echo stashes: && git stash list" | |
alias "gl=git log $@" | |
alias "gln=git log --name-status $@" | |
alias "gd=git diff" | |
function version { | |
. /etc/os-release; echo ${VERSION/*, /} | cat - | |
} | |
function dc { | |
docker-compose $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment