![]() |
Computer Systems Lab CS1000 |
![]() Wiscinfo |
![]() CS Home |
![]() CSL |
![]() CS1000 |
![]() Feedback |
You may have noticed other users who have different Xterm environments than the default. How did they do this you ask? They edited their dotfiles. Various utilities determine operating parameters from values stored in a corresponding dotfile, a file prepended by a dot. You may have never seen these files because ls does not display dotfiles by default. The -a parameter is required to display these files.
vega1% ls -a
. .Xkeymap .cshrc.local .login .. .Xresources .exrc .mailrc .Xdefaults .cshrc .fvwmrc .xsession
As you can see, many programs have an obvious corresponding dotfile, usually appended with rc. You can edit these files to program your own defaults and aliases. For your own protection these files are initially read-only. Use the chmod command to enable write permissions. BE CAREFUL when you when editing these files, as you can disable your login process and not be able to login to your account. To be safe, remain logged in on the computer you are modifying your dotfiles with and login to another computer to test the new dotfiles. This way you will be able to fix any mistakes that may prevent you from logging in. If you wish to customize your tcsh environment, use the .cshrc.local file, not the .cshrc file. If you accidentally destroy a dotfile, or edit it beyond recognition, you can get a copy of the default dotfiles from the directory /usr/skel/ with the command
vega1% cp /usr/skel/.*
Be sure to read the man pages before playing with your dotfiles.