comparison bash @ 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 4e44a9c03a3a
children abc5c2edb967
comparison
equal deleted inserted replaced
107:06637c6cdc90 111:fd8dbd4bb758
9 stty werase undef 9 stty werase undef
10 bind '\C-w':unix-filename-rubout 10 bind '\C-w':unix-filename-rubout
11 11
12 #PS1='[\u@\h \W]\$ ' 12 #PS1='[\u@\h \W]\$ '
13 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ ' 13 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ '
14
15 shopt -s histappend
16 PROMPT_COMMAND='history -a'
17 export HISTFILESIZE=10000
18 export HISTCONTROL=ignoredups
14 19
15 export PAGER="less -Rins" 20 export PAGER="less -Rins"
16 export EDITOR=vi 21 export EDITOR=vi
17 export LANG="en_US.UTF-8" 22 export LANG="en_US.UTF-8"
18 unset LS_COLORS 23 unset LS_COLORS
46 alias ping="ping -s" 51 alias ping="ping -s"
47 alias ping6="ping -A inet6" 52 alias ping6="ping -A inet6"
48 ;; 53 ;;
49 FreeBSD) 54 FreeBSD)
50 _has_rm_I=y 55 _has_rm_I=y
51 CLICOLOR= 56 export CLICOLOR=
57 export LSCOLORS=ExGxFxdxCxegedabagExEx
52 ;; 58 ;;
53 OpenBSD) 59 OpenBSD)
54 if command -v colorls > /dev/null 2>&1; then 60 if command -v colorls > /dev/null 2>&1; then
55 export CLICOLOR= 61 export CLICOLOR=
56 alias ls='colorls -F' 62 alias ls='colorls -F'