1837724 Members
3199 Online
110118 Solutions
New Discussion

alias command

 
HU Wen
Occasional Contributor

alias command

Hello, everyone.
Why the alias command can't display these alias that I definied in my personal .profile if I type this command alias from the second xterm windows started at the telnet emulator?
On contrary, if I use this command alias directly form the telnet emulator, it can display all alias as well as those defined in personal .profile.
Thank you!!
3 REPLIES 3
Alex Glennie
Honored Contributor

Re: alias command

If this is under Xwindows :

Make sure the xterm is reading the .profile : try running xterm -ls

Does this work ? : if yes set resource :

xterm*loginShell: True in file $HOME/.Xdefaults : see man xterm, hpterm etc for further details.
federico_3
Honored Contributor

Re: alias command


set in the .profile the ENV environment variable like this:

export ENV=$HOME/.kshrc # $HOME is your home dir. ( when a shell is invoked the script is executed )

create the $HOME/.kshrc file
and within it add the aliases you defined in .profile

federico
CHRIS_ANORUO
Honored Contributor

Re: alias command

Check In Your $HOME for .xtprofile or .dtprofile and remove the # (or remark in front of the DTSO...=true line. Log out and log in, then try running the aliases. I hope you have .kshrc in your $HOME and exported in $HOME/.profile.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.