]> git.rmz.io Git - dotfiles.git/blobdiff - bashrc
import stuff from shada
[dotfiles.git] / bashrc
diff --git a/bashrc b/bashrc
index cf52ff50b64c1cd3c33c49bcc32b452c1701e910..5fdb7edb8ac3c16d84056a45de3316228e513701 100644 (file)
--- 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)"