Mercurial > ec-dotfiles
view bash @ 48:416f9d3e9ee8
[bash] Forgot the .bash.conf => .ecos_bash change.
author | Edho Prima Arief <me@myconan.net> |
---|---|
date | Wed, 27 Apr 2011 21:35:20 +0700 |
parents | 1f1af28f36e9 |
children | b924652e169d |
line wrap: on
line source
#!/usr/bin/env bash [ -n "${echo_bash}" ] && return ecos_bash=y [ -f .ecos_bash.before ] && . .ecos_bash.before _has_rm_I= _has_gnu_ls= _has_bsd_ls= case "$(uname -s)" in Linux) _has_rm_I=y _has_gnu_ls=y ;; SunOS) [ -x /usr/gnu/bin/rm ] && _has_rm_I=y [ -x /usr/gnu/bin/ls ] && _has_gnu_ls=y ;; *BSD) _has_rm_I=y ;; esac if [ $_has_rm_I = y ]; then alias rm="rm -I" else alias rm="rm -i" fi if [ $_has_gnu_ls = y ]; then alias ls="ls -F --color=auto" else alias ls="ls -F" fi [ -f .ecos_bash.after ] && . .ecos_bash.after