-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
895dac7
commit 5ab28ff
Showing
5 changed files
with
43 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
BLUE='\033[0;34m' | ||
NONE='\033[0m' | ||
PREFIX="${BLUE}=>${NONE} " | ||
echo -e "${PREFIX}Downloading oxup" | ||
|
||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
wget -q https://github.com/oxidic/oxup/releases/latest/download/oxup | ||
chmod +x oxup | ||
./oxup setup | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
wget -q https://github.com/oxidic/oxup/releases/latest/download/oxup-darwin | ||
chmod +x oxup-darwin | ||
./oxup-darwin setup | ||
else | ||
wget -q https://github.com/oxidic/oxup/releases/latest/download/oxup.exe | ||
./oxup.exe setup | ||
fi | ||
|
||
if [[ $SHELL == *bash ]]; then | ||
echo '. "$HOME/.oxido/env"' >> $HOME/.bashrc | ||
elif [[ $SHELL == *zsh ]]; then | ||
echo '. "$HOME/.oxido/env"' >> $HOME/.zshrc | ||
else | ||
echo -e "${PREFIX}Add the following lines to your shell configuration to add oxup to PATH: \`. \"$HOME/.oxido/env\"\`" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters