using alias...

hi..

i want to make an alias in unix, for using it to change of directory
by example:

if i am in /dtmp/inp/aux and i want to go to /sybase/bd, i want to make an alias named "bd", to go directally to /sybase/bd (alias bd="cd /sybase/bd")

i create it, but when i turn off the conection the alias doesn�t exists for the next connnection.

it is possible make an alias for ever? or is there another solution to my problem?

jona

you need to put the alias into your profile for it to be loaded each time for ksh add it to .kshrc for bash .bashrc`in your home directory.

To navigate to frequently-used directories, I have the following line in my .profile...

alias ycd='select ID in $(<$HOME/.ycd_list);do [ $ID ] && cd $ID;break;done'

... and I maintain a list of directories in $HOME/.ycd_list

Use it like this...

$ ycd
1) /very/long/path/to/some/working/directory
2) /extremely/long/path/name
3) /etc/you/get/the/idea
#? 2 <<-- note: I keyed 2 here, use 0 or q to quit
$ pwd
/extremely/long/path/name

Note that it only works with ksh-based shells which have a select function. Take a look and the manual pages for a proper description of select and the PS3 prompt.