<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=212.220.94.191</id>
	<title>CBLFS - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=212.220.94.191"/>
	<link rel="alternate" type="text/html" href="https://cblfs.nicewhileitlasted.com/Special:Contributions/212.220.94.191"/>
	<updated>2026-05-21T17:42:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>?title=Bash_Startup_Files&amp;diff=4319</id>
		<title>Bash Startup Files</title>
		<link rel="alternate" type="text/html" href="?title=Bash_Startup_Files&amp;diff=4319"/>
		<updated>2006-12-04T13:16:37Z</updated>

		<summary type="html">&lt;p&gt;212.220.94.191: /* 05-i18n.sh */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== /etc/bashrc ==&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/bashrc &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/bashrc&lt;br /&gt;
 &lt;br /&gt;
 source /etc/profile&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/bashrc&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile&lt;br /&gt;
 # Based on the profile scripts in BLFS http://www.linuxfromscratch.org/blfs/view/svn/postlfs/profile.html&lt;br /&gt;
 &lt;br /&gt;
 for script in /etc/profile.d/*.sh&lt;br /&gt;
 do&lt;br /&gt;
   source $script&lt;br /&gt;
 done&lt;br /&gt;
 unset script&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
 install -d -m755 /etc/profile.d&lt;br /&gt;
&lt;br /&gt;
=== 05-i18n.sh ===&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/05-i18n.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/05-i18n.sh&lt;br /&gt;
 &lt;br /&gt;
 export LANG=[ll]_[CC].[charset]&lt;br /&gt;
 export G_FILENAME_ENCODING=@locale&lt;br /&gt;
  &lt;br /&gt;
 # End /etc/profile.d/05-i18n.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
=== 10-path.sh ===&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/10-path.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/10-path.sh&lt;br /&gt;
 &lt;br /&gt;
 if [ &amp;quot;$EUID&amp;quot; -eq 0 ]; then&lt;br /&gt;
   export PATH=&amp;quot;/sbin:/bin:/usr/sbin:/usr/bin&amp;quot;&lt;br /&gt;
   if [ -d &amp;quot;/usr/local/sbin&amp;quot; ]; then&lt;br /&gt;
     export PATH=&amp;quot;$PATH:/usr/local/sbin&amp;quot;&lt;br /&gt;
   fi&lt;br /&gt;
 else&lt;br /&gt;
   export PATH=&amp;quot;/bin:/usr/bin&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if [ -d &amp;quot;/usr/local/bin&amp;quot; ]; then&lt;br /&gt;
   export PATH=&amp;quot;$PATH:/usr/local/bin&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if [ -d &amp;quot;$HOME/bin&amp;quot; ]; then&lt;br /&gt;
   export PATH=&amp;quot;$HOME/bin:$PATH&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/10-path.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
=== 10-pkg_config_path.sh (Multilib Only) ===&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/10-pkg_config_path.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/10-pkg_config_path.sh&lt;br /&gt;
 &lt;br /&gt;
 export PKG_CONFIG_PATH32=&amp;quot;/usr/lib/pkgconfig&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATHN32=&amp;quot;/usr/lib32/pkgconfig&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATH64=&amp;quot;/usr/lib64/pkgconfig&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/10-pkg_config_path.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
=== 10-xdg.sh ===&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/10-xdg.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profild.d/10-xdg.sh&lt;br /&gt;
 &lt;br /&gt;
 export XDG_DATA_DIRS=&amp;quot;/usr/share&amp;quot;&lt;br /&gt;
 export XDG_CONFIG_DIRS=&amp;quot;/usr/share&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profild.d/10-xdg.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
=== 15-xorg.sh ===&lt;br /&gt;
&lt;br /&gt;
Change &#039;&#039;XORG_PREFIX&#039;&#039; to wherever you are going to install Xorg to. Even if you are going to install Xorg6 or XFree86 make sure that &#039;&#039;XORG_PREFIX&#039;&#039; is still set to the appropriate value.&lt;br /&gt;
&lt;br /&gt;
==== Non-Multilib 15-xorg.sh ====&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/15-xorg.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/15-xorg.sh&lt;br /&gt;
 &lt;br /&gt;
 export XORG_PREFIX=/usr/X11R7&lt;br /&gt;
 &lt;br /&gt;
 export PATH=&amp;quot;${PATH}:${XORG_PREFIX}/bin&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATH=&amp;quot;${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${XORG_PREFIX}/lib/pkgconfig&amp;quot;&lt;br /&gt;
 export ACLOCAL=&amp;quot;aclocal -I $XORG_PREFIX/share/aclocal&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/15-xorg.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
==== Multilib 15-xorg.sh ====&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/15-xorg.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/15-xorg.sh&lt;br /&gt;
 &lt;br /&gt;
 export XORG_PREFIX=/usr/X11R7&lt;br /&gt;
 &lt;br /&gt;
 export PATH=&amp;quot;${PATH}:${XORG_PREFIX}/bin&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATH32=&amp;quot;${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32+:}${XORG_PREFIX}/lib/pkgconfig&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATHN32=&amp;quot;${PKG_CONFIG_PATHN32}${PKG_CONFIG_PATHN32+:}${XORG_PREFIX}/lib32/pkgconfig&amp;quot;&lt;br /&gt;
 export PKG_CONFIG_PATH64=&amp;quot;${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}${XORG_PREFIX}/lib64/pkgconfig&amp;quot;&lt;br /&gt;
 export ACLOCAL=&amp;quot;aclocal -I $XORG_PREFIX/share/aclocal&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/15-xorg.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
=== 50-dircolors.sh ===&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/50-dircolors.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/50-dircolors.sh&lt;br /&gt;
 &lt;br /&gt;
 alias ls=&#039;ls --color=auto&#039;&lt;br /&gt;
 if [ -f &amp;quot;$HOME/.dircolors&amp;quot; ]; then&lt;br /&gt;
   eval `dircolors -b &amp;quot;$HOME/.dircolors&amp;quot;`&lt;br /&gt;
 else&lt;br /&gt;
   if [ -f &amp;quot;/etc/dircolors&amp;quot; ]; then&lt;br /&gt;
     eval `dircolors -b &amp;quot;/etc/dircolors&amp;quot;`&lt;br /&gt;
   fi&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/50-dircolors.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
To create /etc/dircolors run the following command:&lt;br /&gt;
&lt;br /&gt;
 dircolors -p &amp;gt; /etc/dircolors&lt;br /&gt;
&lt;br /&gt;
=== 50-history.sh ===&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/50-history.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/50-history.sh&lt;br /&gt;
 &lt;br /&gt;
 export HISTSIZE=1000&lt;br /&gt;
 export HISTIGNORE=&amp;quot;&amp;amp;:[bf]g:exit&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/50-history.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
=== 50-prompt.sh ===&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/50-prompt.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/50-prompt.sh&lt;br /&gt;
 &lt;br /&gt;
 export PS1=&amp;quot;\u:\w\$ &amp;quot;&lt;br /&gt;
 if [ &amp;quot;${TERM:0:5}&amp;quot; = &amp;quot;xterm&amp;quot; ]; then&lt;br /&gt;
   export PS1=&amp;quot;\[\e]2;\u@\H :: \w\a\]$PS1&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 shopt -s checkwinsize&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/50-prompt.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
If you&#039;re after a colorful PS1 try using &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;\[\e[1;32m\]\u\[\e[1;33m\]@\[\e[1;31m\]\H \[\e[1;34m\]\w \[\e[1;32m\]\$ \[\e[0;0m\]&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;checkwinsize&#039;&#039;&#039; forces bash to check the size of the window at the end of each command. This is useful if you resized your terminal while a command was running.&lt;br /&gt;
&lt;br /&gt;
=== 50-readline.sh ===&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/50-readline.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/50-readline.sh&lt;br /&gt;
 &lt;br /&gt;
 if [ -z &amp;quot;$INPUTRC&amp;quot; ]; then&lt;br /&gt;
   if [ -f &amp;quot;$HOME/.inputrc&amp;quot; ]; then&lt;br /&gt;
     export INPUTRC=&amp;quot;$HOME/.inputrc&amp;quot;&lt;br /&gt;
   else&lt;br /&gt;
     if [ -f &amp;quot;/etc/inputrc&amp;quot; ]; then&lt;br /&gt;
       export INPUTRC=&amp;quot;/etc/inputrc&amp;quot;&lt;br /&gt;
     fi&lt;br /&gt;
   fi&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/50-readline.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
=== 50-umask.sh ===&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/50-umask.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/50-umask.sh&lt;br /&gt;
 &lt;br /&gt;
 if [ &amp;quot;`id -un`&amp;quot; = &amp;quot;`id -gn`&amp;quot; -a $EUID -gt 99 ]; then&lt;br /&gt;
   umask 002&lt;br /&gt;
 else&lt;br /&gt;
   umask 022&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/50-umask.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
=== 50-multilib.sh (For Multilib Only) ===&lt;br /&gt;
&lt;br /&gt;
==== Non-Mips ====&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/50-multilib.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/50-multilib.sh&lt;br /&gt;
 &lt;br /&gt;
 export BUILD32=&amp;quot;-m32&amp;quot;&lt;br /&gt;
 export BUILD64=&amp;quot;-m64&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 export LD_BUILD32=&amp;quot;-m elf_i386&amp;quot;&lt;br /&gt;
 export LD_BUILD64=&amp;quot;-m elf_x86_64&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/50-multilib.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Adjust elf_i386 and elf_x86_64 accordingly for your architecture. If you&#039;re unsure what to set the value to see the output of:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 ld --help | grep emulations&lt;br /&gt;
&lt;br /&gt;
==== Mips ====&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /etc/profile.d/50-multilib.sh &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 # Begin /etc/profile.d/50-multilib.sh&lt;br /&gt;
 &lt;br /&gt;
 export BUILD32=&amp;quot;-mabi=32&amp;quot;&lt;br /&gt;
 export BUILDN32=&amp;quot;-mabi=n32&amp;quot;&lt;br /&gt;
 export BUILD64=&amp;quot;-mabi=64&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 export LD_BUILD32=&amp;quot;&amp;quot;&lt;br /&gt;
 export LD_BUILDN32=&amp;quot;&amp;quot;&lt;br /&gt;
 export LD_BUILD64=&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # End /etc/profile.d/50-multilib.sh&lt;br /&gt;
 EOF&lt;/div&gt;</summary>
		<author><name>212.220.94.191</name></author>
	</entry>
</feed>