X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/468df93c1412b92a48b1e29917f913dee711176b..a6ea1a1fa2e612852376b6deab07cb2388608fc8:/bashrc diff --git a/bashrc b/bashrc index 3ee743b..d60f87f 100644 --- a/bashrc +++ b/bashrc @@ -1,5 +1,3 @@ -xhost +local:root > /dev/null 2>&1 - shopt -s cdspell shopt -s checkwinsize shopt -s cmdhist @@ -10,6 +8,7 @@ shopt -s histappend shopt -s hostcomplete # shopt -s nocaseglob # never! lost a file cause of this shit +export HISTFILE=$XDG_CACHE_HOME/bash_history export HISTSIZE=10000 export HISTFILESIZE=${HISTSIZE} export HISTCONTROL=ignoreboth @@ -51,10 +50,7 @@ PS1='[\u@\h \W]\$ ' [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # Alias definitions. -[[ -f ~/.aliases ]] && . ~/.aliases +[[ -f $XDG_CONFIG_HOME/aliases ]] && . $XDG_CONFIG_HOME/aliases # set PATH so it includes user's private bin if it exists [[ -d "$HOME/bin" ]] && PATH="$HOME/bin:$PATH" - -# import host specific bashrc -[[ -e ~/.bashrc_$(hostname) ]] && . ~/.bashrc_$(hostname)