Been a long time since I blogged on serious stuff over here. So tonight I’ll give you an introduction on how to write good config files. Following is a valid sample from my production openSUSE 10.2 system:
## /etc/bash.bashrc.local
##
## System-wide aliases & env stuff that
## I've gotten used to while using Mdv...
##
## Ya better ask me whether I'm sure or not
## before ya delete, move or overwrite stuff
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
##
## Haha, there are colors everywhere...
alias grep='grep --color'
##
## Root's ls is freaking moronish cuz it displays
## hidden files by default, so I'm killing that
## by first unaliasing and then putting a
## replacement highly super-geeky alias.
unalias ls
alias ls='ls -F --show-control-chars --color=auto'
##
## Hiya, this is what a prompt should look like!!
PS1='[\u@\h \W]\$ '
##
## I'm really smart you see. Yay!!
Notice how everything out there is sufficiently commented. Commenting stuff in these nifty config files is for helping yourself realize (in some future time) how smart you always have been when it came to writing good config files. Of course, the last comment on your smartness is real important too. Adios!!
P.S. –> The dashes (–) are supposed to be two hyphens (- -, w/o the space in between). WordPress thinks it’s too smart and interprets it as dashes. Some fecking SMARTASS it sure is…
Recent Comments