-if [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
-fi
-
-xhost +local:root > /dev/null 2>&1
-
shopt -s cdspell
shopt -s checkwinsize
shopt -s cmdhist
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
export EDITOR=vim
export VISUAL=vim
-# prompt
-prompt ()
-{
- . ~/.bash_colors
- PS1="[\u@\[${bldred}\]\h\[${bldblu}\] \W\[${txtrst}\]]\[${txtrst}\]\$ "
-}
-prompt
-unset prompt
+# default prompt
+PS1='[\u@\h \W]\$ '
# Stuff from ubuntu
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# Alias definitions.
-# You may want to put all your additions into a separate file like
-# ~/.bash_aliases, instead of adding them here directly.
-# See /usr/share/doc/bash-doc/examples in the bash-doc package.
-if [ -f ~/.bash_aliases ]; then
- . ~/.bash_aliases
-fi
+[[ -f $XDG_CONFIG_HOME/aliases ]] && . $XDG_CONFIG_HOME/aliases
# set PATH so it includes user's private bin if it exists
-if [ -d "$HOME/bin" ] ; then
- PATH="$HOME/bin:$PATH"
-fi
+[[ -d "$HOME/bin" ]] && PATH="$HOME/bin:$PATH"