summaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@gmail.com>2016-04-01 22:30:53 +0200
committerEkaitz Zárraga <ekaitz.zarraga@gmail.com>2016-04-01 22:30:53 +0200
commitd695ed06665f59e9e960b2ef04e42b8924fa23f0 (patch)
treec369464b71f0cfc6cb8461f6e81ee074b80bdf78 /bash
parente9ef9b0a02601a30a1c9242d5849a17ec2af1cbb (diff)
some 256 color tests
Diffstat (limited to 'bash')
-rw-r--r--bash/.bash_aliases3
-rw-r--r--bash/.bash_profile5
2 files changed, 5 insertions, 3 deletions
diff --git a/bash/.bash_aliases b/bash/.bash_aliases
index 24ffcf5..397a823 100644
--- a/bash/.bash_aliases
+++ b/bash/.bash_aliases
@@ -23,3 +23,6 @@ alias l='ls -CF'
# vim open multiple files in tabs
alias vim='vim -p'
+
+# show me the terminal colors
+alias 256color='(x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done)'
diff --git a/bash/.bash_profile b/bash/.bash_profile
index d0fe952..5130536 100644
--- a/bash/.bash_profile
+++ b/bash/.bash_profile
@@ -3,14 +3,13 @@ source ~/.git-prompt.sh
#PS1="\[$GREEN\]\t\[$RED\]-\[$BLUE\]\u\[$YELLOW\]\[$YELLOW\]\w\[\033[m\]\[$MAGENTA\]\$(__git_ps1)\[$WHITE\]\$ "
PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$(__git_ps1)\[$WHITE\]\$ "
-TERM=xterm-256color
-
if [ -f ~/.bash_aliases ] ; then
. ~/.bash_aliases
fi
-
# Extra configuration for work or home, just separate it in different file to keep dotfiles clean
if [ -f ~/.bash_extra ] ; then
. ~/.bash_extra
fi
+
+export TERM=xterm-256color