Skip to content

Commit c81c415

Browse files
committed
Move n config to .profile by default
1 parent 984cbd1 commit c81c415

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.bashrc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ fi
5757
export PATH=$THIS_DIR/bin:$HOME/bin:$HOME/.local/bin:$PATH
5858
export TMP=/tmp
5959
export TEMP=/tmp
60-
N_PREFIX=$HOME/.n
61-
if [ -d "$N_PREFIX" ]; then
62-
export PATH=$N_PREFIX/bin:$PATH
63-
export N_PREFIX
60+
if ! [ -v N_PREFIX ]; then
61+
N_PREFIX=$HOME/.n
62+
if [ -d "$N_PREFIX" ]; then
63+
export PATH=$N_PREFIX/bin:$PATH
64+
export N_PREFIX
65+
fi
6466
fi
6567
if [ -d "$HOME"/.dotnet/tools ] && ! [[ $PATH =~ "$HOME"/.dotnet/tools ]]; then
6668
export PATH=$PATH:$HOME/.dotnet/tools

0 commit comments

Comments
 (0)