Ticket #45: profile.xml.patch
| File profile.xml.patch, 2.0 KB (added by , 24 years ago) |
|---|
-
profile.xml
31 31 is read when the shell is invoked as an interactive non-login 32 32 shell.</para> 33 33 34 <para>Here is a base <filename>/etc/profile</filename>.</para> 34 <para>Here is a base <filename>/etc/profile</filename>. Comments in the 35 file should explain everything you need. For more information on the 36 escape sequences you can use for your prompt (e.g. the PS1 environment 37 variable) see <filename>info bash</filename> -- Node: Printing a 38 Prompt.</para> 35 39 36 40 <para><screen># Begin /etc/profile 37 41 # Written for Beyond Linux From Scratch … … 94 98 95 99 # End /etc/profile</screen></para> 96 100 97 98 101 <para>Here is a base <filename>/etc/bashrc</filename>. Comments in the 99 102 file should explain everything you need.</para> 100 103 … … 137 140 # System wide aliases and functions are in /etc/bashrc. 138 141 139 142 if [ -f "$HOME/.bashrc" ] ; then 140 .$HOME/.bashrc143 source $HOME/.bashrc 141 144 fi 142 145 143 146 if [ -d "$HOME/bin" ] ; then … … 163 166 # in /etc/bashrc. 164 167 165 168 if [ -f "/etc/bashrc" ] ; then 166 ./etc/bashrc169 source /etc/bashrc 167 170 fi 168 171 169 172 # End ~/.bashrc</screen></para> 170 173 171 174 <para>Here is a base <filename>~/.bash_logout</filename>. Comments in 172 the file should explain everything you need.</para> 175 the file should explain everything you need. You will notice that the 176 base <filename>~/.bash_logout</filename> does not include a 177 <userinput>clear</userinput> command. This is because the clear is 178 handled in the <filename>/etc/issue</filename> file.</para> 173 179 174 180 <para><screen># Begin ~/.bash_logout 175 181 # Written for Beyond Linux From Scratch … … 190 196 <filename>.dircolors</filename> file and place it in the 191 197 <filename>/etc/skel</filename> directory for new users.</para> 192 198 199 <para>Ian Macdonald has written an excellent collection of tips and 200 tricks to enhance your shell environment. You can read it online at 201 <ulink 202 url="http://www.caliban.org/bash/index.shtml">http://www.caliban.org/bash/index.shtml</ulink></para> 203 193 204 </sect1>
