View Single Post
Old 09-21-2003, 07:36 PM   #6 (permalink)
Jolt
Insane
 
Jolt's Avatar
 
Location: Over here
my ~/.cshrc calls a separate file ~/shellwreck (yes, bad pun) which by now has grown to over three kbytes in size.

tail -2 .cshrc
# This file is boring. let's read in an interesting one.
source ~/shellwreck

tail -2 shellwreck
#confirm reading of this file
echo Shell aliases enabled.

the external file is very nice when you add stuff at any given time...which I use things like this for...
alias vc 'vi ~/shellwreck'
alias .c 'source ~/shellwreck'
alias a alias
alias u unalias

I just about constantly hyper-optimize my workspace. most of my aliases are just one or two characters.

I started this alias file over ten years ago and have taken it with me from machine to machine...colleges, home, elsewhere...

btw...Have any of you bash users got a prompt string half as useful as "%{^[[46;30m%}%m%{^[[m%} %{^[[36;1m%}%l%{^
%{^[[30;44m%}%@%{^[[m%}%{^[[30;47m%}%h%{^[[37;40m%} " ?
Jolt is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54