How to get environment variables from inside gvim

When I start gvim using the terminal, I can access all environment variables.

But if I started gvim from the menu or from the Launch Application launcher, all of my environment variables are not available.

How can I access the environment variables defined in my bashrc if gvim does not start from the terminal?

These variables are defined in ~ / .bashrc

Distro: Ubuntu Intrepid

Note1: Launching the Launch Application Launcher is possible by pressing ALT + <F2>

+5
source share
1 answer

You should be able to read all the actual environment variables, for example.

:!echo $PATH

Your problem is with personal environment variables.

gvim? , -.


, bash .bash_profile.
, .bashrc, .

.bashrc, , , .

gvim , .bashrc , .

info bourne, . 9.1.2

, :

MYENVIRONMENTVARIABLE=new value of environment variable
export MYENVIRONMENTVARIABLE

.bash_profile, , - , , ( , , .bash_profile).

, , , , .

+7

All Articles