############################################################################# ## ## .tcshrc.set 01Apr2003, Simos Xenitellis (simos74@gmx.net) ## ## This is the .tcshrc.set file, part of the TCSHRC project ## at http://tcshrc.sourceforge.net ## Has two sections, GENERAL and SYSTEM SPECIFIC ## GENERAL # When you press "Ctrl-D", should you exit the shell? # If you are used to exit the shell with "Ctrl-D", disable this. #set ignoreeof # Define new prompt. # Basic prompt. (do a 'man tcsh' to get more about the flags) # This shows the current path in inverse color and that is nice. # It is important to know all the time in what directory you are. # explanation: %B begin bold, %b end bold, %S begin inverse, %s end inverse # explanation: %m short system name, %/ full directory name, %# is # or % # explanation: depending if you are root or non-root. #set prompt="%B%n%b@%m:%/%# " set prompt = "\n%d, %D. %w %Y, %P\n<`uname -sr`> [%m:%~]\n%B%U%n@%l%u %#%b " # Prompt used when waiting for stufffor 'for' or 'while'... set prompt2="%R?" # Prompt used when correcting. # Correct???? # y: yes, n: no, e: edit # : yes # : no set prompt3="CORRECT> %B%R%b (y|n|e)?" # Don't beep at all... # beeping is annoying, perhaps it is good only when you learn TCSH. # If you are a rookie in TCSH, try commenting it out. set nobeep # This is the history of each individual shell. # It defines only the size and it usefull when invoking previous commands. set history=2048 # Make sure that there is no logging of the session. # Privacy issues and it was mentioned that logging makes slow the logout #unset histfile # Watch any(1) other users every 0 seconds from any(2) console, # when logging in/out.(I like this one!) # It gives something like "root has logged on tty1 from local." # You may find it annoying on busy systems (like shell1.sourceforge.net) set watch=(0 any any) # Format of output string when someone logins or logouts.(Look above) # Hmm, can't be internationalised easily. set who="%n has %a %l from %M." # Set to 'insert' mode. Possible values 'insert' or 'overwrite'. # By default, we are in "insert" mode. set inputmode=insert # Do autolisting of commands while completing. # Very handy. Example with "chmod". # % ch # now it shows all possible commands that start with "ch*". # % chm # we have seen that there is only one chm* command. Thus, the does: # % chmod # This is among best tricks of TCSH. Learn this and you will be very fast # on the command line. set autolist # Do autocorrection while completing... # It does some very rudimentary corrections. I was not disatisfied yet. # Try: # % cd /usr/loca/bin # % cd /usr/local/bin <- you get set autocorrect # Use the history of commands to aid expansion. # Found in new versions of tcsh (at least 6.10) set autoexpand # Enabled "complete" to "enhance". # If you have a file called "complete.tcsh" and you # want to edit it, do "vi c.t" and that's it. set complete=enhance # Possible values : cmd complete all # Put it to extreme auto. set correct=all # Don't want to be autologed out. # You can set it to autologout you after x minutes of idle time. # You would do: set autologout=3 for 3 minutes of inactivity. unset autologout # Symbolic links are expanded to their true values : chase # (possible values 'chase' 'ignore' 'expand') # When traversing directories with symlinks, this substitures them # with the real value. You will like it. set symlinks=chase # After a 'Ctrl-Z', it lists all the jobs. set listjobs # If the exit value is non-zero, print it. # Very handy when you do scripting. set printexitvalue # Ask for confirmation when 'rm *'. #set rmstar # Set the command to be run instead of a BEEP.(does this one work???) #set beepcmd # Files that are to be ignored from completion. # These are the .o files that GCC produces. Usually you do not touch them. set fignore=(.o) # Various statistics. # You can unset it or set it (it is set a bit later). #unset time #set time="%Uu %Ss %E %P %X+%Dk %I+%Oio %Fpf+%Ww" # Do "man tcsh" to find about more data that can be shown # with this command. I have used only those that are available # on a Linux box without kernel debugging enabled. # That is, a stock kernel from a distribution. set time=(8 "\ Total time : %Es\ CPU utilisation (percentage) : %P\ ") # Before printing prompt after a command, do : #alias precmd date # Setting the 'echo_style' parameter to 'both'. # Other values are bsd, sysv, etc. # This way, both 'set -n' and set '\003' styles will work. # On Linux it's already set to 'both. # Submission by miklos. set echo_style=bsd ## Addition by Hunter Eidson (eeidson). # Execute command after changing directory. # This changes the title bar/icon description of the console window. #setenv SHORT_HOST `echo $HOST | cut -f 1 -d. | tr 'a-z' 'A-Z'` #switch ( $TERM ) # case "dtterm*": # dtterm # case "xterm*": # xterm # alias seticon 'echo -n "\033]1;\!*\007"' # alias sethead 'echo -n "\033]2;\!*\007"' # alias cwdcmd 'sethead "${SHORT_HOST} - ${PWD}"' # breaksw; # case "sun*": # SunView cmdtool/shelltool # alias seticon 'echo -n "\033]L\!*\033\\"' # alias sethead 'echo -n "\033]l\!*\033\\"' # alias cwdcmd 'sethead "${SHORT_HOST} - ${PWD}"' # breaksw; # case "vt[24]20*": # TNVT and SecureCRT (Windows clients) # alias seticon 'echo -n ""' # alias sethead 'echo -n "\033]0;\!*\007\033\\"' # alias cwdcmd 'sethead "${SHORT_HOST} - ${PWD}"' # breaksw; # default: # alias seticon echo -n "" # alias sethead echo -n "" # unalias cwdcmd #endsw #sethead ${SHORT_HOST} - ${PWD} #seticon ${SHORT_HOST} #### Generic command to set the title bar of the console window to #### show the hostname and current directory. #### We currently use the switch mechanism above to determine the #### correct values for different TERMs. # Addition by #alias cwdcmd 'echo -n "\033]2;${HOST}\007\033]1;\007"' #unalias cwdcmd # Every # seconds, do 'command'. # set tperiod = 2 # alias periodic 'tput bel' unset tperiod unalias periodic # After 8 hours, it changes the prompt to the following! ### sorry for this :) #sched +8:00 set prompt='Has trabajado mucho. Llama la novia\! :> ' ## SYSTEM SPECIFIC #setenv PRINTER HP4KN #setenv SGML_CATALOG_FILES /usr/lib/sgml/CATALOG ## Language settings # FIXME These should have been set by the system. # FIXME Unless you are greek, these will make your computer ill. # One should tinker /etc/sysconfig/i18n or similar. Period. #setenv LANG el_GR #setenv LANGUAGE el_GR #setenv LC_ALL el_GR #if( $?REMOTEHOST && ! $?DISPLAY ) then # # setenv DISPLAY ${REMOTEHOST}:0 # #endif setenv PAGER less setenv LESS "-g -h1000 -i -mM -Q -w" setenv LESSCHARSET iso8859 setenv MANPATH /usr/share/man:/usr/local/man:/usr/X11R6/man setenv PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/local/java/bin:$HOME/bin:/usr/ports/Tools/scripts setenv EDITOR vim setenv LC_CTYPE de_DE.ISO8859-15 #eval `tset -sQ` setenv PACKAGEROOT ftp://ftp3.de.freebsd.org #setenv MASTER_SITE_BACKUP http://mirror.critical.ch/${DIST_SUBDIR}/ ### send-pr vars setenv LOGNAME "lme@FreeBSD.org" set histdup="priv" setenv NTFS_USE_UBLIO 1 setenv UBLIO_BLOCKSIZE 2097152 setenv UBLIO_ITEMS 128 setenv LSCOLORS "Dxfxcxdxbxegedabagacad"