Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

AVN creates .bash_profile instead of writing in .profile #49

Closed
slorber opened this issue Nov 7, 2016 · 4 comments
Closed

AVN creates .bash_profile instead of writing in .profile #49

slorber opened this issue Nov 7, 2016 · 4 comments

Comments

@slorber
Copy link

slorber commented Nov 7, 2016

Hi,

My mac had a .profile config. After installing AVN a lot of my things in shell got broken, because AVN created a .bash-profile file that did not exist before.

This lead to my .profile not being loaded anymore, leading to my $PATH being incorrect, my aliases not being created.

I think AVN should append to .profile if it exists, because creating .bash_profile will make bash to not load .profile file, making other apps unusable in the same time

Details

  • avn avn --version: 0.2.3
  • node node --version 7.0.0
  • nvm nvm --version 0.32.1
  • n n --version not found
  • zsh zsh --version 5.0.8
  • bash bash --version 3.2.57(1)
@wbyoung
Copy link
Owner

wbyoung commented Nov 7, 2016

Duplicate of #31.

@wbyoung wbyoung closed this as completed Nov 7, 2016
@edsfocci
Copy link

@slorber What version of Mac OS?

@slorber
Copy link
Author

slorber commented Jan 12, 2017

I don't know it's probably 10.11.6 I didn't do any update for a while and it's my current version

@thooyork
Copy link

thooyork commented Oct 16, 2019

Just copy the folowing line from ~/.bash_profile into ~/.bashrc if you're using linux.
[[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh" # load avn

you can delete the ~/.bash_profile file afterwards on ubuntu / linux

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants