@@ -61,14 +61,14 @@ _add_path() {
61
61
echo " [ OK ] $DIR / is already in PATH."
62
62
else
63
63
# Nexus Tools directory needs to be added to $PATH
64
- if [[ $SHELL == * " bash" * ]]; then
65
- echo ' export PATH=$PATH:' $DIR >> $HOME /.bashrc
66
- source " $HOME /.bashrc"
67
- echo " [ OK ] Bash shell detected, added $DIR / to $HOME /.bashrc."
68
- elif [[ $SHELL == * " zsh" * ]]; then
64
+ if [[ " $SHELL " =~ " zsh" ]]; then
69
65
echo ' export PATH=$PATH:' $DIR >> $HOME /.zshrc
70
66
source " $HOME /.zshrc"
71
67
echo " [ OK ] Z Shell detected, added $DIR / to $HOME /.zshrc."
68
+ elif [[ " $SHELL " =~ " bash" ]]; then
69
+ echo ' export PATH=$PATH:' $DIR >> $HOME /.bashrc
70
+ source " $HOME /.bashrc"
71
+ echo " [ OK ] Bash shell detected, added $DIR / to $HOME /.bashrc."
72
72
else
73
73
echo " [WARN] Shell could not be detected, you will need to manually add $DIR to your PATH."
74
74
fi
@@ -103,7 +103,9 @@ _analytics() {
103
103
104
104
# Function for opening completion webpage
105
105
_open_webpage () {
106
- if [ " $OS " = " Darwin" ]; then
106
+ if [ -d " /mnt/c/Windows" ]; then
107
+ /mnt/c/Windows/explorer.exe " https://corbin.io/nexus-tools-exit.html" & > /dev/null &
108
+ elif [ " $OS " = " Darwin" ]; then
107
109
open " https://corbin.io/nexus-tools-exit.html" & > /dev/null &
108
110
else
109
111
xdg-open " https://corbin.io/nexus-tools-exit.html" & > /dev/null &
0 commit comments