From a7c84058b31109b0c6912319bec76fc6dad497a7 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 21 Mar 2012 22:58:38 +0900 Subject: [PATCH] update some aliases --- bashrc | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/bashrc b/bashrc index e94d3e8..fc72140 100755 --- a/bashrc +++ b/bashrc @@ -32,6 +32,7 @@ then else export PAGER="less" fi +export LESS="-iRMX" if false null type vim then @@ -69,19 +70,14 @@ elif echo "$EMACS" | grep term >/dev/null 2>&1; then # for emacs term echo "Emacs Term" fi -# if test -f /etc/issue -# then -# cat /etc/issue -# fi - ################################### # some aliases and functions -test "$TERM" == dumb || _ENABLECOLOR="--color=always " +test "$TERM" == dumb || _coloroption=" --color=always" -export LESS="-iRMX" -export GREP_OPTIONS="${_ENABLECOLOR}" -alias ls="ls -hCF ${_ENABLECOLOR}--time-style=long-iso" +alias ls="ls -hCF --time-style=long-iso${_coloroption}" +# export GREP_OPTIONS="" +alias grep="grep${_coloroption}" # alias ll="ls -l" # alias la="ls -A" # alias lla="ls -Al" @@ -123,8 +119,8 @@ null type pacman-color && { export PACMAN=pacman-color # used by yaourt } null type pacmatic && { - alias pacman=pacmatic - export PACMAN=pacmatic + alias pacman="pacmatic" + export PACMAN="pacmatic" } alias ubuntu-upgrade="sudo apt-get autoremove --yes && sudo apt-get update --yes && sudo apt-get upgrade --yes"