From: W. Trevor King Date: Mon, 13 Feb 2012 18:27:49 +0000 (-0500) Subject: Add SunOS 5.10 workarounds to .bashrc.d/10aliases. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9e6fbd001972bf661a3073b9c21091a825b88df7;p=dotfiles-public.git Add SunOS 5.10 workarounds to .bashrc.d/10aliases. Also change this file to tabs intentation. --- diff --git a/src/.bashrc.d/10aliases b/src/.bashrc.d/10aliases index e070ebe..1b12c46 100644 --- a/src/.bashrc.d/10aliases +++ b/src/.bashrc.d/10aliases @@ -1,8 +1,16 @@ # Make file system utilities friendlier -alias rm='rm -iv' -alias rmdir='rmdir -v' -alias cp='cp -iv' -alias mv='mv -iv' +if [ "$OS" == 'SunOS' ]; then + # SunOS 5.10 utilities don't support the -v (verbose) option. + alias rm='rm -i' + alias cp='cp -i' + alias mv='mv -i' +else + alias rm='rm -iv' + alias rmdir='rmdir -v' + alias cp='cp -iv' + alias mv='mv -iv' +fi + alias less='less -R' # Configure useful programs @@ -25,14 +33,16 @@ alias scanletter='scanimage -d 'epkowa:interpreter:001:003' --quick-format Lette # enable color support of ls and also add handy aliases if [ "$TERM" != "dumb" ] && [ -x /usr/bin/dircolors ]; then - eval "`dircolors -b`" - alias ls='ls --color=auto' - #alias dir='ls --color=auto --format=vertical' - #alias vdir='ls --color=auto --format=long' + eval "`dircolors -b`" + alias ls='ls --color=auto' + #alias dir='ls --color=auto --format=vertical' + #alias vdir='ls --color=auto --format=long' - alias grep='grep --color=auto' - #alias fgrep='fgrep --color=auto' - #alias egrep='egrep --color=auto' + if [ "$OS" != 'SunOS' ]; then + alias grep='grep --color=auto' + #alias fgrep='fgrep --color=auto' + #alias egrep='egrep --color=auto' + fi # SunOS 5.10's grep doesn't support --color fi # some more ls aliases