Sublime Forum

Variables not exported from .bashrc and .bash_profile

#1

when run sublime from desctop: /opt/sublime_text/sublime_text %F
I see env variable: SHELL = /bin/bash
but nothing is exported from .bashrc and .bash_profile

How to fix that?

0 Likes

#2

That problem is related to OS
stackoverflow.com/questions/2894 … -variables

Simple work around:

#!/bin/bash source ~/.bashrc /opt/sublime_text/sublime_text "$@"

0 Likes

#3

Can you change script base script ‘subl’ to include ‘.bashrc’ as in mine example?

0 Likes