-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(linux): add support for debian, ubuntu, and fedora
- Loading branch information
Deavon M. McCaffery
committed
Dec 14, 2016
1 parent
63b3084
commit 72f23e7
Showing
33 changed files
with
230 additions
and
122 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
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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
if test -n "${PROMPT_DEBUG+1}"; then | ||
if [ ! -z "${PROMPT_DEBUG:-}" ]; then | ||
echo 'themes' | ||
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
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,50 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ ! -z "${PROMPT_DEBUG:-}" ]; then | ||
echo 'dotnet-install' | ||
fi | ||
|
||
safe-exec() { | ||
local CMD=$1 | ||
shift | ||
|
||
$CMD "$@" 2>&1 | ||
|
||
local EXIT_CODE=$? | ||
|
||
if [ $EXIT_CODE -ne 0 ]; then | ||
exit $EXIT_CODE | ||
fi | ||
} | ||
|
||
function dotnet-install() { | ||
if type dotnet 1>/dev/null 2>&1; then | ||
return | ||
fi | ||
|
||
if [ ! -z "${1:-}" ]; then | ||
export DOTNET_INSTALL_DIR=$1 | ||
fi | ||
|
||
if [ -z "${DOTNET_INSTALL_DIR:-}" ]; then | ||
export DOTNET_INSTALL_DIR=$HOME/.dotnet | ||
fi | ||
|
||
local DOTNET_URI=https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2.1/scripts/obtain/dotnet-install.sh | ||
local DOTNET_INSTALL_SH=$DOTNET_INSTALL_DIR/dotnet-install.sh | ||
|
||
if [ ! -d $DOTNET_INSTALL_DIR ]; then | ||
mkdir -p $DOTNET_INSTALL_DIR | ||
fi | ||
|
||
curl -fSsL $DOTNET_URI -o $DOTNET_INSTALL_SH 1>/dev/null 2>&1 | ||
|
||
safe-exec chmod +x $DOTNET_INSTALL_SH | ||
safe-exec $DOTNET_INSTALL_SH | ||
safe-exec rm -rf $DOTNET_INSTALL_SH | ||
|
||
mkdir -p /usr/local/share 1>/dev/null 2>&1 | ||
ln -s $DOTNET_INSTALL_DIR /usr/local/share 1>/dev/null 2>&1 | ||
|
||
reset | ||
} |
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
Oops, something went wrong.