Update p to allow nix to run in the same shell, without a reboot.
This commit is contained in:
11
install.sh
11
install.sh
@@ -13,10 +13,7 @@ elif [[ $d == "Arch" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
p i stow
|
p i stow
|
||||||
if [[ $? == 0 ]]; then
|
|
||||||
# Link dotfile home to $HOME
|
# Link dotfile home to $HOME
|
||||||
echo -e "${GREEN}[+] Symlinking dotfiles...${ENDCOLOR}"
|
echo -e "${GREEN}[+] Symlinking dotfiles...${ENDCOLOR}"
|
||||||
stow -v -t $HOME home --adopt
|
stow -v -t $HOME home --adopt
|
||||||
else
|
|
||||||
echo -e "${YELLOW}[E] Installation not finished. Reboot your system and run the script again.${ENDCOLOR}"
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -110,8 +110,8 @@ p() (
|
|||||||
echo -e "${YELLOW}[E] Nix not found.${ENDCOLOR}"
|
echo -e "${YELLOW}[E] Nix not found.${ENDCOLOR}"
|
||||||
echo -e "${GREEN}[+] Installing the Nix package manager...${ENDCOLOR}"
|
echo -e "${GREEN}[+] Installing the Nix package manager...${ENDCOLOR}"
|
||||||
curl -L https://nixos.org/nix/install | sh
|
curl -L https://nixos.org/nix/install | sh
|
||||||
echo -e "${GREEN}[I] Installed Nix. Please reboot your device.${ENDCOLOR}"
|
. $HOME/.nix-profile/etc/profile.d/nix.sh
|
||||||
return 2
|
echo -e "${GREEN}[I] Installed Nix.${ENDCOLOR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If no parameter
|
# If no parameter
|
||||||
|
|||||||
Reference in New Issue
Block a user