Your environment can be customized to meet your needs and/or esthetical standards. This is usually done with the help of various startup and configuration files. These are shell scripts which typically reside in your home directory, and have their names stating with '.'. They are not reported by an 'ls' command, unless option -a is used, or one specfically asks for them, like 'ls .*'.
A very efficient way for a beginner to customize his/her environment is to look at other people's startup files.
source /usr/local/etc/fermi.login source /usr/local/etc/d0local.loginIn addition, you can have it put out welcoming messages, etc.. etc..
source /usr/local/etc/fermi.cshrc source /usr/local/etc/d0local.cshrc
Korn shell is executing in addition a file .kshrc every time a new shell is created. In fact you may customize your Korn shell environment, by invoking different startup file, depending on your need. This can be done by defining an environmental variable ENV referring to the desired file.
Start-up files can be categorized into:
xclock -geom 150x150+1105+7 -hd green -hl yellow -bg pink -fg red &
xterm -ls -fn 10x20 -sb -sl 500 &
mwm
Notice that the processes are started in the background. The last line invokes a window manager and xinit will transfer control to it.An important variation of this method is a remote session, for example over the phone line. In this case there are two possibilities: you can run xinit on the terminal server (preferred) or on the remote node. In the latter case you will invoke xinitremote, which will execute a file .xinitremoterc. Your .xinitremoterc file may look like:
xclock -geom 150x150+1105+7 -hd green -hl yellow -bg pink -fg red &
xterm -ls -fn 10x20 -sb -sl 500
Notice that in this example you do not start a window manager, as presumably you are running a local window manager on your X-terminal.
An important resource file is .Xdefaults. Its format is:
application_name*resource_name valueHere are some example lines from a .Xdefaults file:
emacs*font: 10x20 Mosaic*anchorColor: red 4Dwm*keyboardFocusPolicy: clickIn addition to the .Xdefaults file applications may be taking their parameters from the application-specific configuration files, for example:
Configuration file Aplication .emacs emacs .explorerrc explorer .mh_profile MH .mailcap mosaic .piafrc piafTake a look at .* files in your home directory!