X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/3e15c7e178bf62658a23570a628ff6e989d32ea9..82dd761cf1842c38aa90bd85a53a117e192609c5:/bashrc diff --git a/bashrc b/bashrc index 8efaeea..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 ~/.aliasesrc ]] && . ~/.aliasesrc +[[ -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)