changeset 111:fd8dbd4bb758

ls color for freebsd, history control.
author Edho Prima Arief <edho@myconan.net>
date Tue, 11 Oct 2011 11:42:16 +0000
parents 06637c6cdc90
children abc5c2edb967
files bash
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bash	Sat Sep 17 01:11:11 2011 +0700
+++ b/bash	Tue Oct 11 11:42:16 2011 +0000
@@ -12,6 +12,11 @@
 #PS1='[\u@\h \W]\$ '
 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ '
 
+shopt -s histappend
+PROMPT_COMMAND='history -a'
+export HISTFILESIZE=10000
+export HISTCONTROL=ignoredups
+
 export PAGER="less -Rins"
 export EDITOR=vi
 export LANG="en_US.UTF-8"
@@ -48,7 +53,8 @@
   ;;
   FreeBSD)
     _has_rm_I=y
-    CLICOLOR=
+    export CLICOLOR=
+    export LSCOLORS=ExGxFxdxCxegedabagExEx
   ;;
   OpenBSD)
     if command -v colorls > /dev/null 2>&1; then