source: /cluster/svnroot/bccd-ng/branches/rc-3.0.3/trees/etc/bash.bashrc @ 3045

Last change on this file since 3045 was 3045, checked in by fitz, 10 years ago

cleanup module list for milestone:3.0.3

File size: 1.5 KB
Line 
1# System-wide .bashrc file for interactive bash(1) shells.
2
3# To enable the settings / commands in this file for login shells as well,
4# this file has to be sourced in /etc/profile.
5
6. /usr/local/Modules/3.2.6/init/bash
7module load modules
8module load cuda dreamm fftw openmpi intelcc mcell
9# If not running interactively, don't do anything
10[ -z "$PS1" ] && return
11
12
13# check the window size after each command and, if necessary,
14# update the values of LINES and COLUMNS.
15shopt -s checkwinsize
16
17# set variable identifying the chroot you work in (used in the prompt below)
18if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
19    debian_chroot=$(cat /etc/debian_chroot)
20fi
21
22# set a fancy prompt (non-color, overwrite the one in /etc/profile)
23PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
24
25# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
26# If this is an xterm set the title to user@host:dir
27#case "$TERM" in
28#xterm*|rxvt*)
29#    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
30#    ;;
31#*)
32#    ;;
33#esac
34
35# enable bash completion in interactive shells
36#if [ -f /etc/bash_completion ]; then
37#    . /etc/bash_completion
38#fi
39
40# if the command-not-found package is installed, use it
41if [ -x /usr/lib/command-not-found ]; then
42        function command_not_found_handle {
43                # check because c-n-f could've been removed in the meantime
44                if [ -x /usr/lib/command-not-found ]; then
45                   /usr/bin/python /usr/lib/command-not-found -- $1
46                   return $?
47                else
48                   return 127
49                fi
50        }
51fi
52
Note: See TracBrowser for help on using the repository browser.