X-Git-Url: https://git.donarmstrong.com/?p=home-base.git;a=blobdiff_plain;f=.bashrc;h=e0af9c23564be586bad131236caf407f8d2a016d;hp=5f3c7da67c5be696fc47a675dc6d09088f57e310;hb=00e1ec9e64437e58956bf93271ca9e05fcb7698d;hpb=69c506f2c9ec619db23ae86d60f46ecbc238f2fd diff --git a/.bashrc b/.bashrc index 5f3c7da..e0af9c2 100644 --- a/.bashrc +++ b/.bashrc @@ -28,7 +28,10 @@ if [ "$PS1" ]; then alias gr='gimp-remote-2.2' alias emc='sane_editor' + alias svn-b="svn-buildpackage --svn-builder 'pdebuild --buildresult ..' --svn-ignore-new" + # 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\] @@ -37,6 +40,10 @@ if [ "$PS1" ]; then screen|xterm*) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' ;; + rxvt*) + PROMPT_COMMAND='echo -ne "\033]2;${USER}@${HOSTNAME}: ${PWD}\007"' + ;; + *) ;; esac @@ -46,6 +53,22 @@ if [ "$PS1" ]; then 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