Skip to content

Webstorm Ubuntu .bash_profile #1358

@rhalff

Description

@rhalff

I've noticed the installer has created a .bash_profile

.bash_profile:

###-tns-completion-start-###
if [ -f /home/rhalff/.tnsrc ]; then
    source /home/rhalff/.tnsrc
fi
###-tns-completion-end-###

Normally Ubuntu does not have a .bash_profile and will load .bashrc.

The problem with the above is the rest of the environment will not get loaded while .bashrc is not being sourced.

Adding something like [[ -s ~/.bashrc ]] && source ~/.bashrc to the file would accomplish that.

I mention Webstorm, because it's terminal will consider loading .bash_profile instead of .bashrc which made it suddenly not load my normal environment anymore (e.g. nvm etc)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions