3812ddab405c069365d2f1f6bf7096691a8ac8d8
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / system / skeleton / etc / profile
1 # ~/.bashrc: executed by bash(1) for non-login interactive shells.
2
3 export PATH=\
4 /bin:\
5 /sbin:\
6 /usr/bin:\
7 /usr/sbin:\
8 /usr/local/bin
9
10 # If running interactively, then:
11 if [ "$PS1" ]; then
12
13     if [ "$BASH" ]; then
14         export PS1="[\u@\h \W]\\$ "
15         alias ll='/bin/ls --color=tty -laFh'
16         alias ls='/bin/ls --color=tty -F'
17         export LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:';
18     else
19       if [ "`id -u`" -eq 0 ]; then 
20         export PS1='# '
21       else
22         export PS1='$ '
23       fi
24     fi
25
26     export USER=`id -un`
27     export LOGNAME=$USER
28     export HOSTNAME=`/bin/hostname`
29     export HISTSIZE=1000
30     export HISTFILESIZE=1000
31     export PAGER='/bin/more '
32     export EDITOR='/bin/vi'
33     export INPUTRC=/etc/inputrc
34     export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
35
36 fi;
37
38 # Source configuration files from /etc/profile.d
39 for i in /etc/profile.d/*.sh ; do
40     if [ -r "$i" ]; then
41         . $i
42     fi
43 done