X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/352fe1c31a12484e932c323b44f05070c6076705..8b00adf400c3f5ecdeefcf1f57631e75933c0621:/bashrc diff --git a/bashrc b/bashrc index cf52ff5..d60f87f 100644 --- a/bashrc +++ b/bashrc @@ -1,9 +1,3 @@ -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 @@ -14,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 @@ -47,28 +42,15 @@ ex () 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"