Skip to content

Instantly share code, notes, and snippets.

@piojanu
Last active November 8, 2019 12:22
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 piojanu/1e1f52796e664c76671fa2560a4bd074 to your computer and use it in GitHub Desktop.
Save piojanu/1e1f52796e664c76671fa2560a4bd074 to your computer and use it in GitHub Desktop.
Bash aliases
alias p='python'
alias p3='python3'
alias ga='git add'
alias gci='git commit -m'
alias gcia='git commit -am'
alias gco='git checkout'
alias gh="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'"
alias gs='git status'
alias ll='ls -lGFha --color=auto'
alias ls='ls -GFh --color=auto'
alias ds='du -h --max-depth=1'
alias targz='tar -czvf'
alias untargz='tar -xzvf'
function md {
mkdir -p $1
cd $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment