dotfiles/.bash_aliases
2014-01-22 11:39:16 +01:00

25 lines
565 B
Bash

alias grep='grep --color'
alias l='ls -lhatr'
alias ls='ls --color=auto'
alias rm='rm -I'
# Git stuff
alias gdp='git diff --color HEAD^ HEAD'
alias gl='git log --pretty=format:"%Cgreen%h %Creset %s %Cgreenby %an (%ar) %Cred %d" --graph'
alias gdc='git diff --color'
# export standard terminal for remote connections
#alias ssh='export TERM=xterm && ssh'
if [ $(which ncal >/dev/null 2>&1) ]; then
alias cal='ncal -b -M -3'
else
alias cal='cal -m -3'
fi
alias hexdump='hexdump -c'
alias pwgen='pwgen -B -s'
# open multiple files in tabs
alias vim='vim -p'