Magellan Linux

Contents of /trunk/bash/dot.bashrc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29 - (show annotations) (download)
Mon Jul 25 17:26:38 2005 UTC (18 years, 8 months ago) by niro
File size: 970 byte(s)
new file

1 # $Header: /root/magellan-cvs/src/bash/dot.bashrc,v 1.1 2005-07-25 17:26:21 niro Exp $
2
3 # check for an interactive shell.
4 # it make no sense to get past this point for scp and similar.
5 if [[ $- != *i* ]]
6 then
7 return
8 fi
9
10 # read /etc/profile to get global options in xterms also.
11 source /etc/profile
12
13 # export dir colors if any defines exists.
14 # prefer user dircolors, else if not found use the system global one.
15 if [[ -f ~/.dir_colors ]]
16 then
17 eval `dircolors -b ~/.dir_colors`
18 else
19 eval `dircolors -b /etc/DIR_COLORS`
20 fi
21
22 # some nice aliases for ls
23 alias ls="ls --color=auto"
24 alias ll="ls -lh --color=auto"
25 alias la="ls -hal --color=auto"
26 alias lsc="ls --format=single-column --color=auto"
27
28 # use a nice output for the window title of xterms.
29 case $TERM in
30 xterm*|rxvt|Eterm|eterm)
31 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
32 ;;
33 screen)
34 PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
35 ;;
36 esac