alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
+alias ln='ln -i'
alias md='mkdir -p'
alias rd='rmdir'
+# reboot / halt / poweroff
+alias reboot='sudo /sbin/reboot'
+alias poweroff='sudo /sbin/poweroff'
+alias halt='sudo /sbin/halt'
+alias shutdown='sudo /sbin/shutdown'
+alias apt-get='sudo apt-get'
+alias update='sudo apt-get update && sudo apt-get upgrade'
+
# My shortcuts
+alias c='clear'
alias h='history'
alias e='ranger-cd'
alias o='rifle'
-alias c='clear'
+alias vi='vim'
+alias top='atop'
alias open='xdg-open &>/dev/null'
alias info='info --vi-keys'
alias ag='ag --path-to-ignore=$HOME/.ignore --skip-vcs-ignores'
alias rg='rg --path-separator="//"'
alias githome='git --git-dir=$HOME/.githome --work-tree=$HOME'
-alias gh='githome'
+alias dit='githome'
+alias sudo='sudo '
+alias su='sudo -i'
+alias vlc='vlc *.avi'
+alias wget='wget -c'
+
+# Reboot my home Linksys WAG160N / WAG54 / WAG320 / WAG120N Router / Gateway from *nix.
+alias rebootlinksys="curl -u 'admin:my-super-password' 'http://192.168.1.100/setup.cgi?todo=reboot'"
if [ ! -x "$(which tree 2>/dev/null)" ]
then
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
fi
-# Enable aliases to be sudo'ed
-alias sudo='sudo '
-
# Get week number
alias week='date +%V'
_completion_loader git 2> /dev/null
if type _git &>/dev/null; then
complete -o "default" -o "nospace" -F _git githome;
- complete -o "default" -o "nospace" -F _git gh;
+ complete -o "default" -o "nospace" -F _git dit;
fi;
# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
export KEYMAP=us
# Set XDG directories
-#export XDG_DATA_HOME=~/.local/share/
-#export XDG_CONFIG_HOME=~/.config/
-#export XDG_DATA_DIRS=/usr/local/share/:/usr/share/
-#export XDG_CACHE_HOME=~/.cache
-
if [ -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs ]; then
. ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
export XDG_DESKTOP_DIR XDG_DOWNLOAD_DIR XDG_TEMPLATES_DIR XDG_PUBLICSHARE_DIR XDG_DOCUMENTS_DIR XDG_MUSIC_DIR XDG_PICTURES_DIR XDG_VIDEOS_DIR