I log onto my system & am forced into csh. I always change this to ksh. When I subsequently run a shell command from within vi (e.g. by doing :!pwd) then the command is executed using csh. I know this because (a) some commands don't work as I'd like them to & (b) if I do :!ps -f I see a csh process which I don't want.
My question is how can I change the shell which is executed when I escape from vi. I am assuming it's chosen csh because that is my login's first shell - but I may be wrong there. I don't want to change my login's default shell because this may affect other things we do with my ID.
Perhaps there is a .exrc setting? A general system wide solution would be good but this may not be advisable as it may also have unwanted knock on effects.
Thanks, Chris
My question is how can I change the shell which is executed when I escape from vi. I am assuming it's chosen csh because that is my login's first shell - but I may be wrong there. I don't want to change my login's default shell because this may affect other things we do with my ID.
Perhaps there is a .exrc setting? A general system wide solution would be good but this may not be advisable as it may also have unwanted knock on effects.
Thanks, Chris