alias emc='sane_editor'
# set a fancy prompt
+ #printf '\33]2;%s\007'
PS1="\[\033[0;36m\]\h \t \w$\[\033[0m\] "
# \[\033[1;36m\][\w]\n\[\033[0;36m\][\h|\t]$ \[\033[0m\]
screen|xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
+ rxvt*)
+ PROMPT_COMMAND='echo -ne "\033]2;${USER}@${HOSTNAME}: ${PWD}\007"'
+ ;;
+
*)
;;
esac
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion;
fi;
+
+ # set up ssh-agent
+ if which ssh-agent >/dev/null && [ -d ~/.ssh ]; then
+# for
+ if [ -e ~/.ssh/ssh_agent_info ] && \
+ [ -n "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info)" ] && \
+ kill -0 "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info)" >/dev/null 2>&1; then
+ . ~/.ssh/ssh_agent_info > /dev/null
+ elif [ -e ~/.ssh/ssh_agent_info_$(hostname) ] && \
+ kill -0 "$(awk -F '[=;]' '/^SSH_AGENT_PID/{print $2}' ~/.ssh/ssh_agent_info_$(hostname))" >/dev/null 2>&1; then
+ . ~/.ssh/ssh_agent_info_$(hostname) > /dev/null
+ else
+ ssh-agent -s > ~/.ssh/ssh_agent_info_$(hostname)
+ . ~/.ssh/ssh_agent_info_$(hostname) > /dev/null
+ fi;
+ fi;
alias aumix2='aumix -d /dev/mixer1 -I'
if locale -a |grep -qi en_US.utf8; then
fi;
export TMPDIR="$(echo ~/tmp)";
- for a in tda tdd tde; do
- alias "s${a}"="STODO_NO_COMMIT=1 $a"
- done;
+ if [ -n "$(which devtodo)" ]; then
+ for a in tda tdd tde; do
+ alias "s${a}"="STODO_NO_COMMIT=1 $a"
+ done;
- TODO_OPTIONS="--timeout --summary"
+ TODO_OPTIONS="--timeout --summary"
- cd ()
- {
- builtin cd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
- }
-
- pushd ()
- {
- builtin pushd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
- }
-
- popd ()
- {
- builtin popd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
- }
-
- # Run todo initially upon login
- devtodo ${TODO_OPTIONS}
+ cd ()
+ {
+ builtin cd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
+ }
+ pushd ()
+ {
+ builtin pushd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
+ }
+
+ popd ()
+ {
+ builtin popd "$@" && [ -r .todo ] && devtodo ${TODO_OPTIONS}
+ }
+
+ # Run todo initially upon login
+ devtodo ${TODO_OPTIONS}
+ fi;
fi