Created
January 3, 2014 22:53
-
-
Save novalore/8248248 to your computer and use it in GitHub Desktop.
Useful aliases for my favorite shell
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
#!/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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!