dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit b1afabb38b9367994ae890e174e393403582b998
parent a99ef555eec2a6e08498cb31506a11e4cd49a7bf
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat, 20 Oct 2012 22:32:03 -0700

Aliases cleanup

Diffstat:
M.aliases | 31++++++++++++++++++++-----------
1 file changed, 20 insertions(+), 11 deletions(-)

diff --git a/.aliases b/.aliases @@ -1,18 +1,27 @@ -# enable color support of ls and also add handy aliases -if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias egrep='egrep --color=auto' +# ~/.aliases + +case $(uname -s) in + Darwin) + dircolors='/opt/local/libexec/gnubin/dircolors' + ;; + Linux) + dircolors='/usr/bin/dircolors' + ;; +esac +if [ -x "$dircolors" ]; then + test -r ~/.dircolors && eval "$($dircolors -b ~/.dircolors)" || eval "$($dircolors -b)" + alias ls='ls --color=auto' + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' fi -# More ls aliases -alias ll='ls -alF' -alias la='ls -A' +# more ls aliases +alias ll='ls -lF' +alias la='ls -AlF' alias l='ls -CF' -# Enable checks +# enable checks alias cp='cp -i' alias mv='mv -i' alias rm='rm -i'