alias install="sudo aptitude install -y"
alias remove="sudo aptitude purge"
alias search="apt-cache search"
alias ls="ls -al"
alias hdd="df -h"
alias up="cd .."
alias clr='clear;echo "Currently logged in on $(tty), as $(whoami) in directory $(pwd)."'
alias home="cd ~"
alias disk="cd /"
alias trash="sudo rm -rf ~/.local/share/Trash"
alias update="sudo aptitude update && sudo aptitude safe-upgrade"
alias reboot="sudo reboot"
ex () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
*.tgz) tar xzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "'$1' cannot be extracted via extract()" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
netinfo ()
{
echo "--------------- Network Information ---------------"
/sbin/ifconfig | awk /'inet addr/ {print $2}'
echo ""
/sbin/ifconfig | awk /'Bcast/ {print $3}'
echo ""
/sbin/ifconfig | awk /'inet addr/ {print $4}'
# /sbin/ifconfig | awk /'HWaddr/ {print $4,$5}'
echo "---------------------------------------------------"
}
spin ()
{
echo -ne "${RED}-"
echo -ne "${WHITE}\b|"
echo -ne "${BLUE}\bx"
sleep .02
echo -ne "${RED}\b+${NC}"
}
HISTFILESIZE=100000000
HISTSIZE=100000
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
PS1="[\t \u \W]\\$ "
clear
echo -e ""
echo -ne "Today is "; date
echo -e ""; cal ;
echo -ne "Up time:";uptime | awk /'up/
{print $3,$4}'
echo "";
fortune
encrypt ()
{
gpg -ac –no-options "$1"
}
decrypt ()
{
gpg –no-options "$"
}