X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/bd78babfeb92083f4e5e153603397ea0ec64dd4c..26064f9fa3af5e8e46eb4560f4145386c056821e:/bashrc diff --git a/bashrc b/bashrc index cf52ff5..5fdb7ed 100644 --- a/bashrc +++ b/bashrc @@ -1,7 +1,3 @@ -if [ -f /etc/bash_completion ]; then - . /etc/bash_completion -fi - xhost +local:root > /dev/null 2>&1 shopt -s cdspell @@ -47,28 +43,18 @@ 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 ~/.bash_aliases ]] && . ~/.bash_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" + +# import host specific bashrc +[[ -f "~/.bashrc_$(hostname)" ]] . "~/.bashrc_$(hostname)"