stty -ixon
+ulimit -c unlimited
+
alias ..='cd ..'
alias -- -='cd -'
alias rm='rm -i'
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"
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'
done
}
-function d () {
- wget -O - $1
-}
-
######################################################################
## A version of pho which stores the image numbers in environment
## variables
######################################################################
# Commits all directories under git
+alias git-ca="echo Are you sure?"
+
function git-ca () {
ORIGINAL_PWD=${PWD}
UNCOMMITTED=""
# 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}
}
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