]> err.no Git - dotfiles/blob - bashrc
loosen font specs a bit
[dotfiles] / bashrc
1 # .bashrc -*- sh -*-
2
3 # User specific aliases and functions
4
5 # This files should only contain environment variables and such. Do
6 # not run any programs in here. Their output will be presenet in
7 # 'less' and other commands which spawn a shell.
8
9 # Source global definitions
10 if [ -f /etc/bashrc ]; then
11         . /etc/bashrc
12 fi
13 if [ -f /local/skel/all.bashrc ]; then
14     . /local/skel/all.bashrc
15 fi
16
17 if [ -f "$HOME/.environment" ]; then
18     . $HOME/.environment
19 fi
20 alias ls="ls $LS_OPTIONS"
21 alias ssh='ssh-add -l > /dev/null 2>&1 || ssh-add ; \ssh'
22
23 ATTR_FET="\[\033[1m\]"
24 ATTR_UND="\[\033[4m\]"
25 ATTR_INV="\[\033[7m\]"
26 ATTR_AV="\[\033[m\]"
27
28 case $TERM in
29     linux|*xterm*|ansi|linux-lat|*Eterm*)
30         export PS1=": ${ATTR_FET}\u@\h${CHROOT} \w \\\$${ATTR_AV} "
31         export PS2="${ATTR_FET}>${ATTR_AV}";;
32     *) 
33         export PS1="\u@\h${CHROOT}:\w\$ "
34         export PS2=">$";;
35 esac
36
37 alias mirror="wget --mirror --no-parent --convert-links -P $HOME/data/www-mirror "