.bashrc, .cshrc or .profile scripts

Nils Kassube kassube at gmx.net
Fri Jan 30 13:21:40 UTC 2009


Flynn, Steve (L & P - IT) wrote:
> I spend most of my working day on a number of AIX servers. Out of the
> box, AIX has a minimal .profile script - does nothing more than check
> your mail and let you know if you have any. Consequently, the first
> thing I set up are a collection of aliases for commonly used
> commands... usually switching on the interactive switch on destructive
> commands such as rm plus setting the prompt to show me the machine I'm
> logged in to.

I hope you will always remember that commands are destructive if you sit 
at machines you don't own. There is a reason why I don't use those 
aliases any longer.

> Anyone care to share any particularly useful functions, aliases,
> prompts or any other code?

Here are some of mine:

alias gdb='gdb -q'
alias man='man -a'
alias top='top -i'
alias md='mkdir -p'
alias rot13='gcipher -C Rot -k 13'
alias play='play -q'
alias dif='diff -dtprU 6 -x bin -x "*.[ao]" -x "*.obj" -x "*~"'

PS1='\w/ >\[\033[m\] '
[ "$UID" = 0 ] && PS1='\[\033[01m\033[41m\033[37m\]\h: \w/ #\[\033[m\] '


Nils




More information about the ubuntu-users mailing list