1756475 Members
3387 Online
108847 Solutions
New Discussion юеВ

alias help

 
SOLVED
Go to solution
Ash_4
Advisor

alias help

hello,
How to export alias.
I have defined some alias in user .profile. but if i execute "ksh -o vi" i am not able to
execute the defined alias.
How to export the alias if i change the shell.

Thanks in adv.
3 REPLIES 3
Sukant Naik
Trusted Contributor

Re: alias help

Hi Ash,

Did you try using

alias -x

eg :
$ alias -x dir="ls -al"


Regards,
Sukant

Who dares he wins
john korterman
Honored Contributor
Solution

Re: alias help

Hi,

try the following thread (the alias must be written in .kshrc)

http://support5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000007948716&admit=552267591+1029488447596+28353475


regards,

John K.
it would be nice if you always got a second chance
Leif Halvarsson_2
Honored Contributor

Re: alias help

Hi
You should define your alias in .kshrc and in the .profile you should have
ENV=.kshrc; export ENV