cvs commit: ALFS/profiles/BLFS/config_standard/etc bashrc issue profile

vdzuba at linuxfromscratch.org vdzuba at linuxfromscratch.org
Mon Sep 29 11:15:52 PDT 2003


vdzuba      03/09/29 12:15:52

  Added:       profiles/BLFS/config_standard/etc bashrc issue profile
  Log:
  Initial import
  
  Revision  Changes    Path
  1.1                  ALFS/profiles/BLFS/config_standard/etc/bashrc
  
  Index: bashrc
  ===================================================================
  # Begin /etc/bashrc 
  # Written for Beyond Linux From Scratch 
  # by James Robertson <jameswrobertson at earthlink.net>
  
  # System wide aliases and functions.
  
  # System wide environment variables and startup programs should go into
  # /etc/profile.  Personal environment variables and startup programs
  # should go into ~/.bash_profile.  Personal aliases and functions should
  # go into ~/.bashrc
  
  # By default we want the umask to get set.
  # Even for non-interactive and non-login shells.
  if [ "$(id -gn)" = "$(id -un)" -a $(id -u) -gt 99 ] ; then
  	umask 002
  else
  	umask 022
  fi
  
  # Provides a colored /bin/ls command.  Used in conjunction with code in
  # /etc/profile.
  alias ls='ls --color=auto'
  
  # End /etc/bashrc
  
  
  
  1.1                  ALFS/profiles/BLFS/config_standard/etc/issue
  
  Index: issue
  ===================================================================
  
  
                                                                                 
                                                                                  
                                                                                  
                                                                                
                                                                                  
           `----'                                                                 
                        
                        
                        
                        Linux From Scratch 3.2/Linux 2.4.19 on kali.
                        One 1.67GHz AMD Athlon XP Processor.
                        512M RAM, 3322.67 Bogomips Total. 
                        Uptime 0 hours 1 minute
                        Console: \l
                        
                        
  
  
  
  1.1                  ALFS/profiles/BLFS/config_standard/etc/profile
  
  Index: profile
  ===================================================================
  # Begin /etc/profile
  # Written for Beyond Linux From Scratch
  # by James Robertson <jameswrobertson at earthlink.net>
  
  # System wide environment variables and startup programs.
  
  # System wide aliases and functions should go in /etc/bashrc.  Personal
  # environment variables and startup programs should go into
  # ~/.bash_profile.  Personal aliases and functions should go into
  # ~/.bashrc.
  
  # Function to help us manage paths
  pathman () {
  	if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
  		if [ "$2" = "last" ] ; then
  			PATH=$PATH:$1
  		else
  			PATH=$1:$PATH
  		fi
  	fi
  }
  
  # Add to the standard path.
  if [ $(id -u) = 0 ] ; then
  	if [ -d "/usr/local/sbin" ] ; then
  		pathman /usr/local/sbin last
  	fi
  fi
  
  if [ $(id -u) != 0 ] ; then
  	if [ -d "/usr/local/bin" ] ; then
  		pathman /usr/local/bin last
  	fi
  fi
  
  if [ -d "/usr/X11R6/bin" ] ; then
  	pathman /usr/X11R6/bin last
  fi
  
  # Setup some environment variables.
  HISTSIZE=1000
  PS1="[\u@\h \w]\\$ "
  
  # Setup the INPUTRC environment variable.
  if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ] ; then
  	INPUTRC=/etc/inputrc
  fi
  
  # Setup for /bin/ls to support color, the alias is in /etc/bashrc.
  if [ -f "/etc/dircolors" ] ; then
  	eval $(dircolors -b /etc/dircolors)
  
  	if [ -f "$HOME/.dircolors" ] ; then
  		eval $(dircolors -b $HOME/.dircolors)
  	fi
  fi
  
  export PATH HISTSIZE PS1 LS_COLORS INPUTRC
  
  # End /etc/profile
  
  
  



More information about the alfs-log mailing list