]> git.rmz.io Git - dotfiles.git/blobdiff - bashrc
lazyvim: delete noice
[dotfiles.git] / bashrc
diff --git a/bashrc b/bashrc
index cf52ff50b64c1cd3c33c49bcc32b452c1701e910..d60f87fc061df40d4c4194a335f85d4a87b32213 100644 (file)
--- 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"