comparison bash @ 67:4510c8a9d8ec

[bash] We have cygwin!
author Edho Prima Arief <me@myconan.net>
date Sun, 22 May 2011 00:45:30 +0700
parents b7814634220a
children 40236fd0a3a5
comparison
equal deleted inserted replaced
66:21e3f6ea5d59 67:4510c8a9d8ec
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 2
3 [ -f .ecos_bash.before ] && . .ecos_bash.before 3 [ -f .ecos_bash.before ] && . .ecos_bash.before
4 4
5 _org_path="${PATH}"
5 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"
6 7
7 PS1='[\u@\h \W]\$ ' 8 PS1='[\u@\h \W]\$ '
8 9
9 export PAGER="less -Rins" 10 export PAGER="less -Rins"
44 if command -v colorls > /dev/null 2>&1; then 45 if command -v colorls > /dev/null 2>&1; then
45 export CLICOLOR= 46 export CLICOLOR=
46 alias ls='colorls -F' 47 alias ls='colorls -F'
47 fi 48 fi
48 ;; 49 ;;
50 CYGWIN*)
51 export PATH="${PATH}:${_org_path}"
52 ;;
49 esac 53 esac
50 54
51 [ "${_has_rm_I}" = y ] && alias rm="rm -I" 55 [ "${_has_rm_I}" = y ] && alias rm="rm -I"
52 [ "${_has_gnu_ls}" = y ] && alias ls="ls -F --color=auto" 56 [ "${_has_gnu_ls}" = y ] && alias ls="ls -F --color=auto"
53 [ "${_has_gnu_grep}" = y ] && alias grep="grep --color=auto" 57 [ "${_has_gnu_grep}" = y ] && alias grep="grep --color=auto"