- Timestamp:
- 08/08/2015 01:03:10 AM (9 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 604bf744
- Parents:
- 037fc0be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/shells/tcsh.xml
r037fc0be r59a6b63 5 5 %general-entities; 6 6 7 <!ENTITY tcsh-download-http "http://www.sfr-fresh.com/unix/misc/tcsh-&tcsh-version;.tar.gz"> 7 <!-- Following URL does not have previous versions 8 <!ENTITY tcsh-download-http "http://www.sfr-fresh.com/unix/misc/tcsh-&tcsh-version;.tar.gz">--> 9 <!-- Following URL does have previous versions --> 10 <!ENTITY tcsh-download-http "http://fossies.org/linux/misc/tcsh-&tcsh-version;.tar.gz"> 8 11 <!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 ">12 <!ENTITY tcsh-md5sum "f5f854833578647795bc906dd4bcb5d5"> 13 <!ENTITY tcsh-size "928 KB"> 14 <!ENTITY tcsh-buildsize "15 MB (with tests)"> 15 <!ENTITY tcsh-time "0.2 SBU (with tests)"> 13 16 ]> 14 17 … … 37 40 installation tasks.</para> 38 41 39 &lfs77_checked; 42 &lfs77_checked; &gcc5_checked; 40 43 41 44 <bridgehead renderas="sect3">Package Information</bridgehead> … … 69 72 <title>Installation of Tcsh</title> 70 73 74 <para> 75 First, fix the package for gcc5 optimizations: 76 </para> 77 78 <screen><userinput>sed -e 's/ i)/ k)/' \ 79 -e '/ k)/ i \ k = i;' \ 80 -e '/\*cp/ a \ volatile size_t k;' \ 81 -i tc.alloc.c</userinput></screen> 82 71 83 <para>Install <application>Tcsh</application> by running the following 72 84 commands:</para> 73 85 74 <screen><userinput>sed -i -e 's|\$\*|#&|' -e 's|fR/g|&m|' tcsh.man2html && 75 86 <screen><userinput>sed -i 's|fR/g|&m|' tcsh.man2html && 76 87 ./configure --prefix=/usr --bindir=/bin && 88 77 89 make && 78 90 sh ./tcsh.man2html</userinput></screen> … … 83 95 84 96 <screen role="root"><userinput>make install install.man && 97 85 98 ln -v -sf tcsh /bin/csh && 86 99 ln -v -sf tcsh.1 /usr/share/man/man1/csh.1 && 100 87 101 install -v -m755 -d /usr/share/doc/tcsh-&tcsh-version;/html && 88 102 install -v -m644 tcsh.html/* /usr/share/doc/tcsh-&tcsh-version;/html && … … 94 108 <title>Command Explanations</title> 95 109 96 <para><command>sed -i -e 's|\$\*|#&|' -e's|fR/g|&m|' tcsh.man2html</command>:110 <para><command>sed -i 's|fR/g|&m|' tcsh.man2html</command>: 97 111 This updates some deprecated Perl code.</para> 98 112 … … 175 189 <literal>/bin/tcsh 176 190 /bin/csh</literal> 191 EOF</userinput></screen> 192 193 <para> 194 The following <filename>~/.cshrc</filename> provides two alternative 195 colour prompts and coloured <command>ls</command> output. If you prefer 196 a global modification, issue the command as the <systemitem 197 class="username">root</systemitem> user, replacing 198 <filename>~/.cshrc</filename> by <filename>/etc/csh.cshrc</filename>. 199 </para> 200 201 <screen><userinput>cat > ~/.cshrc << "EOF" 202 <literal># Original at: 203 # https://www.cs.umd.edu/~srhuang/teaching/code_snippets/prompt_color.tcsh.html 204 205 # Modified BLFS Development Team: 206 207 # Add these lines to your ~/.cshrc (or to /etc/csh.cshrc). 208 209 # Colors! 210 set red="%{\033[1;31m%}" 211 set green="%{\033[0;32m%}" 212 set yellow="%{\033[1;33m%}" 213 set blue="%{\033[1;34m%}" 214 set magenta="%{\033[1;35m%}" 215 set cyan="%{\033[1;36m%}" 216 set white="%{\033[0;37m%}" 217 set end="%{\033[0m%}" # This is needed at the end... 218 219 # Setting the actual prompt. Two separate versions for you to try, pick 220 # whichever one you like better, and change the colors as you want. 221 # Just don't mess with the ${end} guy in either line... Comment out or 222 # delete the prompt you don't use. 223 224 set prompt="${green}%n${blue}@%m ${white}%~ ${green}%%${end} " 225 set prompt="[${green}%n${blue}@%m ${white}%~ ]${end} " 226 227 # This was not in the original URL above 228 # Provides coloured ls 229 alias ls ls --color=always 230 231 # Clean up after ourselves... 232 unset red green yellow blue magenta cyan yellow white end</literal> 177 233 EOF</userinput></screen> 178 234
Note:
See TracChangeset
for help on using the changeset viewer.