projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ffe6c2b
)
Added ionice in the find alias and the --group-directories-first in the ls aliases.
author
Francois Fleuret
<francois@fleuret.org>
Thu, 19 May 2011 17:41:06 +0000
(19:41 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 19 May 2011 17:41:06 +0000
(19:41 +0200)
bashrc
patch
|
blob
|
history
diff --git
a/bashrc
b/bashrc
index
3c4123e
..
6b4d7bb
100644
(file)
--- a/
bashrc
+++ b/
bashrc
@@
-92,6
+92,8
@@
export LESS_TERMCAP_me=${VT_RESET}
stty -ixon
stty -ixon
+ulimit -c unlimited
+
alias ..='cd ..'
alias -- -='cd -'
alias rm='rm -i'
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 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 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"
# 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")
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 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'
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
}
done
}
-function d () {
- wget -O - $1
-}
-
######################################################################
## A version of pho which stores the image numbers in environment
## variables
######################################################################
## A version of pho which stores the image numbers in environment
## variables
@@
-606,6
+605,8
@@
function git-fm () {
######################################################################
# Commits all directories under git
######################################################################
# Commits all directories under git
+alias git-ca="echo Are you sure?"
+
function git-ca () {
ORIGINAL_PWD=${PWD}
UNCOMMITTED=""
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.
# 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)
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}
}
\rm ${PATH_TEMP}
}
@@
-832,7
+834,7
@@
function selector-cd () {
else
cd "$1"
fi
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
}
alias cd=selector-cd