comparison bash @ 113:9b91e702c19c

Latestest merge.
author Edho Prima Arief <edho@myconan.net>
date Wed, 19 Oct 2011 06:51:43 +0000
parents abc5c2edb967
children 548cf46e9cb4
comparison
equal deleted inserted replaced
88:917b525eaee0 113:9b91e702c19c
4 4
5 _org_path="${PATH}" 5 _org_path="${PATH}"
6 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" 6 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
7 7
8 PS1='[\u@\h \W]\$ ' 8 PS1='[\u@\h \W]\$ '
9 #PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ '
10
11 shopt -s histappend
12 PROMPT_COMMAND='history -a'
13 export HISTFILESIZE=10000
14 export HISTCONTROL=ignoredups
9 15
10 export PAGER="less -Rins" 16 export PAGER="less -Rins"
11 export EDITOR=vi 17 export EDITOR=vi
18 export LANG="en_US.UTF-8"
19 unset LS_COLORS
12 20
13 alias less="less -Rins" 21 alias less="less -Rins"
14 #assuming POSIX grep 22 #assuming POSIX grep
15 alias fgrep="grep -F" 23 alias fgrep="grep -F"
16 alias egrep="grep -E" 24 alias egrep="grep -E"
23 _has_gnu_grep= 31 _has_gnu_grep=
24 case "$(uname -s)" in 32 case "$(uname -s)" in
25 Linux) 33 Linux)
26 _has_rm_I=y 34 _has_rm_I=y
27 _has_gnu_ls=y 35 _has_gnu_ls=y
36 _has_gnu_grep=y
28 ;; 37 ;;
29 SunOS) 38 SunOS)
30 [ -x /usr/gnu/bin/rm ] && _has_rm_I=y 39 [ -x /usr/gnu/bin/rm ] && _has_rm_I=y
31 [ -x /usr/gnu/bin/ls ] && _has_gnu_ls=y 40 [ -x /usr/gnu/bin/ls ] && _has_gnu_ls=y
32 [ -x /usr/gnu/bin/grep ] && _has_gnu_grep=y 41 [ -x /usr/gnu/bin/grep ] && _has_gnu_grep=y
38 alias ping="ping -s" 47 alias ping="ping -s"
39 alias ping6="ping -A inet6" 48 alias ping6="ping -A inet6"
40 ;; 49 ;;
41 FreeBSD) 50 FreeBSD)
42 _has_rm_I=y 51 _has_rm_I=y
43 CLICOLOR= 52 export CLICOLOR=
53 export LSCOLORS=ExGxFxdxCxegedabagExEx
44 ;; 54 ;;
45 OpenBSD) 55 OpenBSD)
46 if command -v colorls > /dev/null 2>&1; then 56 if command -v colorls > /dev/null 2>&1; then
47 export CLICOLOR= 57 export CLICOLOR=
48 alias ls='colorls -F' 58 alias ls='colorls -F'