Skip to content

Instantly share code, notes, and snippets.

@scythargon
Created January 5, 2022 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scythargon/8034d855b7327bb5cf9ea2bbcafb4189 to your computer and use it in GitHub Desktop.
Save scythargon/8034d855b7327bb5cf9ea2bbcafb4189 to your computer and use it in GitHub Desktop.
Bash aliases
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