Skip to content

Instantly share code, notes, and snippets.

@novalore
Created January 3, 2014 22:53
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 novalore/8248248 to your computer and use it in GitHub Desktop.
Save novalore/8248248 to your computer and use it in GitHub Desktop.
Useful aliases for my favorite shell
#!/bin/bash
#version 0.3
# Alias utili
alias h='history'
alias cd..="cd .."
alias ms='mysql -uroot -p'
# Crea nuova directory e spostatici
function mkcd (){
mkdir $1 && cd $1
}
#git aliases
alias gitlog="git log --color --graph --pretty=format:'%Cgreen[%Creset%h%Cgreen]%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gittoday="git log --color --graph --pretty=format:'%Cgreen[%Creset%h%Cgreen]%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --since=yesterday"
alias commit="git commit"
alias gc='git commit -m'
alias ga='git add '
alias gd='git diff'
alias gr='git rm'
alias gs='git status'
alias gss='git status -s'
alias gull='git pull origin'
alias gush='git push origin'
alias gco='git checkout'
alias checkout='git checkout'
#apt aliases
alias install='sudo apt-get install'
alias remove='sudo apt-get remove'
alias update='sudo apt-get update'
@novalore
Copy link
Author

novalore commented Jan 4, 2014

I started to collect all my useful "dotfiles" in a common repository on http://git.19.coop/faust/dotfiles.git .
It's a public repository, enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment