From e7175dc5672bde26a54dad581d2614574428ff77 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 19 May 2011 19:41:06 +0200 Subject: [PATCH] Added ionice in the find alias and the --group-directories-first in the ls aliases. --- bashrc | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/bashrc b/bashrc index 3c4123e..6b4d7bb 100644 --- a/bashrc +++ b/bashrc @@ -92,6 +92,8 @@ export LESS_TERMCAP_me=${VT_RESET} stty -ixon +ulimit -c unlimited + alias ..='cd ..' alias -- -='cd -' alias rm='rm -i' @@ -104,8 +106,10 @@ alias md='mkdir -v' alias ps='ps uxaf' alias df='df -hT --sync' alias grep='grep -E --mmap --color=auto' +alias find='ionice -c3 find' alias s='screen -d -R -U && clear' + # alias kj="keyjnote -s -D 1000 -t Crossfade -T 100" alias impressive="impressive -s -D 1000 -t Crossfade -T 100" @@ -115,15 +119,14 @@ alias impressive="impressive -s -D 1000 -t Crossfade -T 100" if [ -e "${HOME}/.dircolors" ]; then eval $(dircolors "${HOME}/.dircolors") - alias ls='ls --color' - # alias ll='ls --color -lth' + alias ls='ls --group-directories-first --color' alias lt='ls --color -gohtr --time-style="+%Y %b %d %H:%M"' alias ll='ls --color -goh --time-style="+%Y %b %d %H:%M"' alias lll='ls --color -lth' alias l='ls --color -I "*~" -I "*.o"' alias less='less -R' else - # alias ll='ls -lth' + alias ls='ls --group-directories-first' alias lt='ls -gohtr --time-style="+%Y %b %d %H:%M"' alias ll='ls -goh --time-style="+%Y %b %d %H:%M"' alias lll='ls -lth' @@ -251,10 +254,6 @@ function map () { done } -function d () { - wget -O - $1 -} - ###################################################################### ## A version of pho which stores the image numbers in environment ## variables @@ -606,6 +605,8 @@ function git-fm () { ###################################################################### # Commits all directories under git +alias git-ca="echo Are you sure?" + function git-ca () { ORIGINAL_PWD=${PWD} UNCOMMITTED="" @@ -815,14 +816,15 @@ bind '"\C-[t":"\C-a\C-kselector-history\C-m\C-a\C-y\C-e"' # Maintain a list of visited directories and provide a selector-based # command to go back to any of them. -export CD_HISTORY +export SELECTOR_CD_HISTORY -[[ "${CD_HISTORY}" ]] || CD_HISTORY=${HOME}/.selector-cd-history +[[ "${SELECTOR_CD_HISTORY}" ]] || \ + SELECTOR_CD_HISTORY=${HOME}/.selector-cd-history function selector-cd-search () { PATH_TEMP=$(mktemp /tmp/selector-cd-path.XXXXXX) - selector -l 10000 -d -i -o ${PATH_TEMP} -q ${CD_HISTORY} - cd "$(cat ${PATH_TEMP} | sed -e 's|~|'${HOME}'|')" + selector -t "cd" -l 10000 -d -i -o ${PATH_TEMP} -q ${SELECTOR_CD_HISTORY} + cd "$(cat ${PATH_TEMP} | sed -e 's!~!'${HOME}'!')" \rm ${PATH_TEMP} } @@ -832,7 +834,7 @@ function selector-cd () { else cd "$1" fi - echo $PWD | sed -e "s!${HOME}!~!" >> ${CD_HISTORY} + echo $PWD | sed -e "s!${HOME}!~!" >> ${SELECTOR_CD_HISTORY} } alias cd=selector-cd -- 2.20.1