Skip to content

Commit

Permalink
add linking to specified location in homebrew install script (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmyc committed Feb 1, 2023
1 parent 4fc93c6 commit 6c5a598
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion homebrew/install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env bash

LINK_DIR=$1
NVS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)

# Set environment variables
export HOME=~
export NVS_HOME=~/.nvs

# Run install script
\. $NVS_DIR/nvs.sh install
\. $NVS_DIR/nvs.sh install

# Link to a specified location to avoid changing shell profile while upgrading
ln -Ffs $NVS_DIR $LINK_DIR

0 comments on commit 6c5a598

Please sign in to comment.