[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/tftp-tools/install-clients-linux/sources/ -> bashrc (source)

   1  #======================================
   2  # ~/.bashrc: executed by bash(1) for non-login shells.
   3  #last update 27-05-2014
   4  
   5  #export PS1='\h:\w\$ '
   6  BLEU="\033[1;34m"
   7  GRIS="\033[0;37m"
   8  JAUNE="\033[1;33m"
   9  VERT="\033[1;32m"
  10  BLANC="\033[1;37m"
  11  ROUGE="\033[1;31m"
  12  CYAN="\033[0;36m"
  13  
  14  DOMDNS=$(grep "^search " /etc/resolv.conf | cut -d" " -f2)
  15  
  16  if [ "$TERM" = "screen" ]; then
  17      export PS1=$JAUNE}'\d \t' $GRIS}' '$CYAN}'\u@\h.'$DOMDNS}$BLANC}':'$BLEU}'\w'$BLANC}'\n\$ '
  18  else
  19      export PS1=$VERT}'\d \t '$GRIS}'\u@\h.'$DOMDNS}$BLANC}':'$BLEU}'\w'$BLANC}'\n\$ '
  20  fi
  21  
  22  umask 022
  23  
  24  # You may uncomment the following lines if you want `ls' to be colorized:
  25  export LS_OPTIONS='--color=auto'
  26  eval "`dircolors`"
  27  alias ls='ls $LS_OPTIONS'
  28  alias ll='ls $LS_OPTIONS -l'
  29  alias l='ls $LS_OPTIONS'
  30  
  31  alias h="history"
  32  alias grep="grep --color"
  33  
  34  
  35  alias df='df -h'
  36  alias free='free -m'
  37  alias vi='vim'
  38  #
  39  # Some more alias to avoid making mistakes:
  40  alias rm='rm -i'
  41  alias cp='cp -i'
  42  alias mv='mv -i'
  43  #======================================
  44  
  45  
  46  
  47  if [ -n "$(lsb_release -c | grep wheezy)" ];then
  48      distrib="debian_wheezy"
  49  else
  50      distrib="ubuntu"
  51  fi
  52  
  53  if [ -e /root/bin/post-install_$distrib.sh ]; then 
  54      /root/bin/post-install_$distrib.sh
  55  fi
  56  # 
  57  # if [ -e /root/bin/inittab.orig ]; then 
  58  # rm -f /etc/inittab 
  59  # mv /root/bin/inittab.orig /etc/inittab
  60  # update-rc.d gdm3 defaults
  61  # fi
  62  
  63  


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1