X-Git-Url: https://git.donarmstrong.com/?p=home-base.git;a=blobdiff_plain;f=.bashrc;h=fc875dd4279c88c4aebd5c551d5e8e07b33c2085;hp=6222be40d9857afeb3b1d9547ac5ec7ff277568e;hb=382dcf28f1cf6b52391340dfac094cfe7a40528c;hpb=9d3bfef8e863af457b10bdd91e0e58bef20dae71 diff --git a/.bashrc b/.bashrc index 6222be4..fc875dd 100644 --- a/.bashrc +++ b/.bashrc @@ -29,16 +29,17 @@ if [ "$PS1" ]; then alias emc='sane_editor' # set a fancy prompt - PS1='\u@\h:\w\$ ' + PS1="\[\033[0;36m\]\h \t \w$\[\033[0m\] " + # \[\033[1;36m\][\w]\n\[\033[0;36m\][\h|\t]$ \[\033[0m\] # If this is an xterm set the title to user@host:dir - #case $TERM in - #xterm*) - # PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' - # ;; - #*) - # ;; - #esac + case $TERM in + screen|xterm*) + PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' + ;; + *) + ;; + esac # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc). @@ -47,8 +48,21 @@ if [ "$PS1" ]; then fi; alias aumix2='aumix -d /dev/mixer1 -I' - export LANG="en_US.UTF-8" + if locale -a |grep -qi en_US.utf8; then + LANG="en_US.UTF-8" + else + LANG=C + fi; + export LANG export PATH="~/bin:$PATH" + if [ ! -e ~/tmp ]; then + mkdir ~/tmp; + fi; + export TMPDIR="$(echo ~/tmp)"; + + for a in tda tdd tde; do + alias "s${a}"="STODO_NO_COMMIT=1 $a" + done; TODO_OPTIONS="--timeout --summary"