]> git.rmz.io Git - dotfiles.git/commitdiff
bash: cleanup bash files
authorSamir Benmendil <samir.benmendil@gmail.com>
Sat, 1 Feb 2014 05:22:00 +0000 (06:22 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Sat, 1 Feb 2014 06:52:13 +0000 (07:52 +0100)
bash_colors [deleted file]
bash_logout [deleted file]
bashrc
bashrc_shada [deleted file]
bashrc_tardis [deleted file]

diff --git a/bash_colors b/bash_colors
deleted file mode 100644 (file)
index de03646..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-local txtblk='\e[0;30m' # Black - Regular
-local txtred='\e[0;31m' # Red
-local txtgrn='\e[0;32m' # Green
-local txtylw='\e[0;33m' # Yellow
-local txtblu='\e[0;34m' # Blue
-local txtpur='\e[0;35m' # Purple
-local txtcyn='\e[0;36m' # Cyan
-local txtwht='\e[0;37m' # White
-local bldblk='\e[1;30m' # Black - Bold
-local bldred='\e[1;31m' # Red
-local bldgrn='\e[1;32m' # Green
-local bldylw='\e[1;33m' # Yellow
-local bldblu='\e[1;34m' # Blue
-local bldpur='\e[1;35m' # Purple
-local bldcyn='\e[1;36m' # Cyan
-local bldwht='\e[1;37m' # White
-local unkblk='\e[4;30m' # Black - Underline
-local undred='\e[4;31m' # Red
-local undgrn='\e[4;32m' # Green
-local undylw='\e[4;33m' # Yellow
-local undblu='\e[4;34m' # Blue
-local undpur='\e[4;35m' # Purple
-local undcyn='\e[4;36m' # Cyan
-local undwht='\e[4;37m' # White
-local bakblk='\e[40m'   # Black - Background
-local bakred='\e[41m'   # Red
-local bakgrn='\e[42m'   # Green
-local bakylw='\e[43m'   # Yellow
-local bakblu='\e[44m'   # Blue
-local bakpur='\e[45m'   # Purple
-local bakcyn='\e[46m'   # Cyan
-local bakwht='\e[47m'   # White
-local txtrst='\e[0m'    # Text Reset
diff --git a/bash_logout b/bash_logout
deleted file mode 100644 (file)
index de4f5f7..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# ~/.bash_logout: executed by bash(1) when login shell exits.
-
-# when leaving the console clear the screen to increase privacy
-
-if [ "$SHLVL" = 1 ]; then
-    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
-fi
diff --git a/bashrc b/bashrc
index 3ee743be77949b694edfb124b6710305d0094de1..3d4527ab8135a7ab9e72cc8aafc7bff8f67fb6cf 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -1,5 +1,3 @@
-xhost +local:root > /dev/null 2>&1
-
 shopt -s cdspell
 shopt -s checkwinsize
 shopt -s cmdhist
@@ -10,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
@@ -55,6 +54,3 @@ PS1='[\u@\h \W]\$ '
 
 # set PATH so it includes user's private bin if it exists
 [[ -d "$HOME/bin" ]] && PATH="$HOME/bin:$PATH"
-
-# import host specific bashrc
-[[ -e ~/.bashrc_$(hostname) ]] && . ~/.bashrc_$(hostname)
diff --git a/bashrc_shada b/bashrc_shada
deleted file mode 100644 (file)
index f8e3188..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-prompt() {
-    . ~/.bash_colors
-    PS1="[\A \u@\[${txtgrn}\]\h \[${bldblu}\]\W\[${txtrst}\]]\$ "
-}
-prompt
-unset prompt
-
-export _gamedir=/mnt/Skaro/Games/Linux/HumbleBundle
diff --git a/bashrc_tardis b/bashrc_tardis
deleted file mode 100644 (file)
index 8c25fcc..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-prompt() {
-    . ~/.bash_colors
-    PS1="[\A \u@\[${bldred}\]\h \[${bldblu}\]\W\[${txtrst}\]]\$ "
-}
-prompt
-unset prompt