alias c='clear'
alias h='history'
alias 'h?'="history | grep -i"
-alias e='ranger-cd'
-alias o='rifle'
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 dit='githome'
+alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
+alias dit='dotfiles'
alias sudo='sudo '
-alias vlc='vlc *.avi'
alias wget='wget -c'
# Reboot my home Linksys WAG160N / WAG54 / WAG320 / WAG120N Router / Gateway from *nix.
# Stopwatch
alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date'
-
-# Automatically change the directory in bash after closing ranger
-function ranger-cd
-{
- tempfile="$(mktemp -t tmp.XXXXXX)"
- ranger --choosedir="$tempfile" "${@:-$(pwd)}"
- test -f "$tempfile" &&
- if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
- cd -- "$(cat "$tempfile")"
- fi
- rm -f -- "$tempfile"
-}
# Add tab completion for `githome` by marking it as an alias for `git`
_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 dotfiles;
complete -o "default" -o "nospace" -F _git dit;
fi;
cd ~
# options
-#set -x # debug
set -o vi
+
shopt -s autocd
shopt -s cdspell
shopt -s checkwinsize
HISTFILE=~/.bash_history.local
# completion, aliases, and local settings
-[ -f ~/.bash_aliases ] && . ~/.bash_aliases;
-[ -f ~/.bash_completion ] && . ~/.bash_completion;
+[ -f /etc/bash_completion ] && . /etc/bash_completion
+[ -f ~/.bash_completion ] && . ~/.bash_completion
+[ -f ~/.bash_aliases ] && . ~/.bash_aliases
[ -f ~/.bashrc.local ] && . ~/.bashrc.local
-
-export NVM_DIR="$HOME/.nvm"
-[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
-[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
+x-scheme-handler/mailto=gnome-gmail.desktop
[Added Associations]
video/ogg=vlc.desktop;
x-scheme-handler/sms=org.gnome.Shell.Extensions.GSConnect.desktop;
inode/directory=meld.desktop;
application/javascript=gvim.desktop;
+x-scheme-handler/mailto=gnome-gmail.desktop;
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
-XDG_DESKTOP_DIR="$HOME/cloud/Desktop"
-XDG_TEMPLATES_DIR="$HOME/cloud/Templates"
-XDG_PUBLICSHARE_DIR="$HOME/cloud/Public"
-XDG_DOCUMENTS_DIR="$HOME/cloud/Documents"
-# too big to get synced
-XDG_DOWNLOAD_DIR="$HOME/Download"
+XDG_DESKTOP_DIR="$HOME/Desktop"
+XDG_DOWNLOAD_DIR="$HOME/Downloads"
+XDG_TEMPLATES_DIR="$HOME/Templates"
+XDG_PUBLICSHARE_DIR="$HOME/Public"
+XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
export VISUAL='vim'
export PAGER='less'
export MANPAGER='less'
-
-# Prefer US language with SI units (Danish)
-export LANG="en_DK.UTF-8"
-export LANGUAGE="en_US.UTF-8"
-export KEYMAP=us
+export LANG="en_US.UTF-8"
# Set XDG directories
if [ -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs ]; then