5 shopt -s expand_aliases
 
   9 # shopt -s nocaseglob # never! lost a file cause of this shit
 
  11 export HISTFILE=$XDG_CACHE_HOME/bash_history
 
  13 export HISTFILESIZE=${HISTSIZE}
 
  14 export HISTCONTROL=ignoreboth
 
  16 # ex - archive extractor
 
  22             *.tar.bz2)  tar xjf $1      ;;
 
  23             *.tar.gz)   tar xzf $1      ;;
 
  24             *.tar.xz)   tar -x --xz -f $1 ;;
 
  34             *)           echo "'$1' cannot be extracted via ex()" ;;
 
  37         echo "'$1' is not a valid file"
 
  49 # make less more friendly for non-text input files, see lesspipe(1)
 
  50 [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
 
  53 [[ -f $XDG_CONFIG_HOME/aliases ]] && . $XDG_CONFIG_HOME/aliases
 
  55 # set PATH so it includes user's private bin if it exists
 
  56 [[ -d "$HOME/bin" ]] && PATH="$HOME/bin:$PATH"