From 7327d5db4c25a78162a20092203d9115ed83dca4 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Sun, 15 Jul 2018 21:04:26 +0200 Subject: [PATCH] Update git alias --- .bash_aliases | 25 ++++++++++++++++++++----- .bash_completion | 2 +- .profile | 5 ----- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 13381ce..bae58ec 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -27,29 +27,44 @@ alias more='less' 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' diff --git a/.bash_completion b/.bash_completion index 35786d1..3db4680 100644 --- a/.bash_completion +++ b/.bash_completion @@ -2,7 +2,7 @@ _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 diff --git a/.profile b/.profile index 8a2b259..9cb795d 100644 --- a/.profile +++ b/.profile @@ -26,11 +26,6 @@ export LANGUAGE="en_US.UTF-8" 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 -- 2.43.0