# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files for examples export __NWT_BASHRC="sourced" if [ -z "$__NWT_PROFILE" ]; then source ~/.profile fi # If running interactively, then: if [ "$PS1" ]; then # show machine uptime uptime # command history shopt -s cmdhist shopt -s histappend HISTCONTROL=ignoreboth # enable color support of ls if [ "$TERM" != "dumb" ]; then eval `dircolors -b` alias ls='ls --color=auto' fi # load aliases [ -f ~/.bash/alias ] && source ~/.bash/alias # set a fancy prompt [ -f ~/.bash/prompt ] && source ~/.bash/prompt # If this is an xterm set the title to user@host:dir case $TERM in xterm*) #PROMPT_COMMAND='echo -ne "\033]0;$(basename "${PWD}")/ (${USER}@${HOSTNAME}:${PWD})\007"' PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' #PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}:${PWD} (${USER})\007\033]30;$(hostname -s | sed -r -e "s/^(.)/\\U\\1/")\007"' #PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}:${PWD} (${USER})\007"; test "$KONSOLE_DCOP_SESSION" && dcop "$KONSOLE_DCOP_SESSION" renameSession $(hostname -s | sed -r -e "s/^(.)/\\U\\1/")' #PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}:${PWD} \ #(${USER})\007\033]30;$(echo ${HOSTNAME} \ #| sed "s/^\\(.\\)/\\u\\1/"):$(echo $(dirname "${PWD}" \ #| sed "s/\\([[:alnum:]]\\)[[:alnum:]]*/\\1/g")/$(basename "${PWD}") \ #| sed "s@///*@/@g")\007"' ;; *) ;; esac # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc). #if [ -f /etc/bash_completion ]; then # . /etc/bash_completion #fi eval $(lesspipe) export PATH=$HOME/bin:$PATH fi