Push aliases to their own file.

This commit is contained in:
David Tomaschik
2014-02-10 17:48:40 -05:00
parent 843863cc75
commit aa984c6a07
3 changed files with 19 additions and 13 deletions

17
aliases Normal file
View File

@@ -0,0 +1,17 @@
# General aliases, should only be sourced in interactive shells
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Cryptsetup alias
alias luksFormat='sudo cryptsetup luksFormat -s 512 -c aes-xts-plain --use-random -h sha256 -i 5000'
# Colors
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
# Timestamp in a machine-sortable form
alias tstamp="date '+%Y%m%d-%H%M%S'"