On 2008-11-19, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote: > i have some paths and other stuff defined in bashrc and when i start > vim from command line everything works but when i use gvim it seems > like stuff i defined in bashrc are not loaded. > any idea what's wrong?
Your bashrc is read by bash when it starts in interactive mode, so it was read by the instance of bash running in your terminal. If you launched gvim from the command line, it would see the same environment that your vim sees. You are probably launching gvim from your window manager, which gets its environment from a number of places, but not from your bashrc since your window manager was not run from bash. Stuff like PATH and other environment settings that you expect to be seen by applications launched from your window manager should really be defined in your ~/.profile instead of in your ~/.bashrc. Your ~/.profile is read when you log in, whether through X or through a terminal. Environment settings (but not aliases) made there and exported will be seen by all your processes. Your ~/.bashrc should really be used to make only those settings that you expect to use only from the command line (including aliases and functions) or by applications launched only from the command line. HTH, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---