Changeset 54789f3 for postlfs/shells/tcsh.xml
- Timestamp:
- 01/24/2016 02:04:18 AM (8 years ago)
- Branches:
- systemd-13485
- Children:
- 83f6c770
- Parents:
- 295ca00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/shells/tcsh.xml
r295ca00 r54789f3 5 5 %general-entities; 6 6 7 <!ENTITY tcsh-download-http "http:// www.sfr-fresh.com/unix/misc/tcsh-&tcsh-version;.tar.gz">7 <!ENTITY tcsh-download-http "http://fossies.org/linux/misc/tcsh-&tcsh-version;.tar.gz"> 8 8 <!ENTITY tcsh-download-ftp "ftp://ftp.astron.com/pub/tcsh/tcsh-&tcsh-version;.tar.gz"> 9 <!ENTITY tcsh-md5sum " 6eed09dbd4223ab5b6955378450d228a">10 <!ENTITY tcsh-size "9 12KB">11 <!ENTITY tcsh-buildsize "1 2.6 MB">12 <!ENTITY tcsh-time "0.2 SBU ">9 <!ENTITY tcsh-md5sum "f5f854833578647795bc906dd4bcb5d5"> 10 <!ENTITY tcsh-size "928 KB"> 11 <!ENTITY tcsh-buildsize "15 MB (with tests)"> 12 <!ENTITY tcsh-time "0.2 SBU (with tests)"> 13 13 ]> 14 14 … … 68 68 <sect2 role="installation"> 69 69 <title>Installation of Tcsh</title> 70 71 <para> 72 First, fix the package for gcc5 optimizations: 73 </para> 74 75 <screen><userinput>sed -e 's/ i)/ k)/' \ 76 -e '/ k)/ i \ k = i;' \ 77 -e '/\*cp/ a \ volatile size_t k;' \ 78 -i tc.alloc.c</userinput></screen> 70 79 71 80 <para>Install <application>Tcsh</application> by running the following 72 81 commands:</para> 73 82 74 <screen><userinput>sed -i -e 's|\$\*|#&|' -e's|fR/g|&m|' tcsh.man2html &&83 <screen><userinput>sed -i 's|fR/g|&m|' tcsh.man2html && 75 84 76 85 ./configure --prefix=/usr --bindir=/bin && … … 94 103 <title>Command Explanations</title> 95 104 96 <para><command>sed -i -e 's|\$\*|#&|' -e's|fR/g|&m|' tcsh.man2html</command>:105 <para><command>sed -i 's|fR/g|&m|' tcsh.man2html</command>: 97 106 This updates some deprecated Perl code.</para> 98 107 … … 175 184 <literal>/bin/tcsh 176 185 /bin/csh</literal> 186 EOF</userinput></screen> 187 188 <para> 189 The following <filename>~/.cshrc</filename> provides two alternative 190 colour prompts and coloured <command>ls</command> output. If you prefer 191 a global modification, issue the command as the 192 <systemitem class="username">root</systemitem> user, replacing 193 <filename>~/.cshrc</filename> by <filename>/etc/csh.cshrc</filename>. 194 </para> 195 196 <screen><userinput>cat > ~/.cshrc << "EOF" 197 <literal># Original at: 198 # https://www.cs.umd.edu/~srhuang/teaching/code_snippets/prompt_color.tcsh.html 199 200 # Modified by the BLFS Development Team. 201 202 # Add these lines to your ~/.cshrc (or to /etc/csh.cshrc). 203 204 # Colors! 205 set red="%{\033[1;31m%}" 206 set green="%{\033[0;32m%}" 207 set yellow="%{\033[1;33m%}" 208 set blue="%{\033[1;34m%}" 209 set magenta="%{\033[1;35m%}" 210 set cyan="%{\033[1;36m%}" 211 set white="%{\033[0;37m%}" 212 set end="%{\033[0m%}" # This is needed at the end... 213 214 # Setting the actual prompt. Two separate versions are available for you to try. Pick 215 # whichever one you like better, and change the colors as you want. 216 # Just don't mess with the ${end} guy in either line... Comment out or 217 # delete the prompt that you don't use. 218 219 set prompt="${green}%n${blue}@%m ${white}%~ ${green}%%${end} " 220 set prompt="[${green}%n${blue}@%m ${white}%~ ]${end} " 221 222 # This was not in the original URL above. 223 # Provides coloured ls 224 alias ls ls --color=always 225 226 # Clean up after ourselves... 227 unset red green yellow blue magenta cyan yellow white end</literal> 177 228 EOF</userinput></screen> 178 229
Note:
See TracChangeset
for help on using the changeset viewer.