# Shell options shopt -s checkwinsize histappend globstar export HISTCONTROL=erasedups export HISTFILESIZE=NOTHING export HISTSIZE=NOTHING export PROMPT_COMMAND='history -a' alias ls='ls --color=auto' alias grep='grep --color=auto' alias vi='vim' alias svn="svn --config-dir \"${XDG_CONFIG_HOME:-$HOME/.config}\"/subversion" alias tmux="tmux -f \"${XDG_CONFIG_HOME:-$HOME/.config}/tmux/config\"" alias tudu="tudu -c \"${XDG_CONFIG_HOME:-$HOME/.config}/tudu/config\"" if [ -f /etc/bash_completion ] then . /etc/bash_completion fi set_prompt(){ last_c=$? PS1='\H' [[ $last_c -ge 1 ]] && PS1="($last_c) $PS1" if [[ -n "$SCHROOT_CHROOT_NAME" ]] then PS1="($SCHROOT_CHROOT_NAME)$PS1" fi if [[ "$COLUMNS" -le 80 ]] then PS1="$PS1 $(echo "$PWD" | sed -e 's|'"$HOME"'|~|g' -e 's|\([^/][^/]\)[^\/]\{3,\}\/|\1..\/|g')" else PS1="$PS1\w" fi PS1="$PS1\$ " } PROMPT_COMMAND='set_prompt'