3 # If not running interactively, don't do anything
4 [ -z "$PS1" ] && return
7 # append to the history file, don't overwrite it
9 export HISTCONTROL=ignoreboth
11 # check the window size after each command and, if necessary,
12 # update the values of LINES and COLUMNS.
15 # make less more friendly for non-text input files, see lesspipe(1)
16 [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
18 ## A little nice prompt.
19 PS1='`_ret=$?; if test $_ret -ne 0; then echo "\[\033[01;31m\]$_ret "; set ?=$_ret; unset _ret; fi`\[\033[01;33m\][`git branch 2>/dev/null|cut -f2 -d\* -s` ] \[\033[01;32m\]\u@\[\033[00;36m\]\h\[\033[01m\]:\[\033[00;37m\]\w\[\033[00m\]\$ '
21 # If this is an xterm set the title to user@host:dir
24 PS1="\[\e]0;\u@\h: \w\a\]$PS1"
32 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
35 export SCRIPTVARS=/srv/backports-master.debian.org/dak/config/backports/vars
38 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
41 echo "Unconfigured dak host, not importing the usual vars"
48 export EDITOR=$(which emacs)
53 export EDITOR=$(which vim)
54 export HISTFILESIZE=6000
55 export GREP_OPTIONS="--color=auto"
56 export CDPATH=".:~:${base}:${public}:${queuedir}"
58 alias base='cd ${base}'
59 alias config='cd ${configdir}'
60 alias psql='LD_PRELOAD=/lib/libreadline.so.5 psql'