mac changes
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if test -x starship; then
|
if command -v starship > /dev/null; then
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
fi
|
fi
|
||||||
|
|||||||
7
setup.d/01-brew.sh
Normal file
7
setup.d/01-brew.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
if ! command -v brew > /dev/null; then
|
||||||
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
7
setup.d/10-reattach-to-user-namespace.sh
Normal file
7
setup.d/10-reattach-to-user-namespace.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
if ! command -v reattach-to-user-namespace > /dev/null; then
|
||||||
|
brew install reattach-to-user-namespace
|
||||||
|
fi
|
||||||
|
fi
|
||||||
@@ -1,6 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if ! command -v shellcheck > /dev/null; then
|
if ! command -v shellcheck > /dev/null; then
|
||||||
sudo apt update > /dev/null && sudo apt install shellcheck > /dev/null;
|
did_install=0
|
||||||
echo "Installed Shellcheck"
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||||
|
sudo apt update > /dev/null && sudo apt install shellcheck > /dev/null;
|
||||||
|
did_install=1
|
||||||
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
brew install shellcheck
|
||||||
|
did_install=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$did_install" == 1 ]]; then
|
||||||
|
echo "Installed Shellcheck"
|
||||||
|
else
|
||||||
|
echo "Did NOT install Shellcheck"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if ! test -x /usr/local/bin/starship; then
|
if ! command -v /usr/local/bin/starship > /dev/null; then
|
||||||
curl -fsSL https://starship.rs/install.sh | bash
|
curl -fsSL https://starship.rs/install.sh | bash
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep starship ~/.bashrc > /dev/null; then
|
|
||||||
echo "eval \"\$(starship init bash)\"" >> ~/.bashrc
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user