Compare commits
No commits in common. "2ffd1172bf29ab6b9e86fcd680007d36189b899d" and "6b4546694b1fc706b89bc4e4e4da986878dbb6a1" have entirely different histories.
2ffd1172bf
...
6b4546694b
27
install.sh
27
install.sh
@ -9,7 +9,6 @@ GITEMAIL=$(git config --get user.email)
|
|||||||
|
|
||||||
# Install homebrew
|
# Install homebrew
|
||||||
which brew >/dev/null || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
which brew >/dev/null || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
brew tap homebrew/core
|
|
||||||
|
|
||||||
echo "🔵 Setting up zsh"
|
echo "🔵 Setting up zsh"
|
||||||
|
|
||||||
@ -24,9 +23,6 @@ printf "Cloning zsh plugins..."
|
|||||||
[ -d ${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ] || git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
[ -d ${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ] || git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||||
printf " ✅\n"
|
printf " ✅\n"
|
||||||
|
|
||||||
# Set correct permissions on compinit dir
|
|
||||||
sudo chmod -R 755 /usr/local/share/zsh/site-functions
|
|
||||||
|
|
||||||
# Install tools
|
# Install tools
|
||||||
BREW_TOOLS=(
|
BREW_TOOLS=(
|
||||||
argocd bandwhich bat danielfoehrkn/switch/switch derailed/k9s/k9s dive doggo duf dust exa fd fzf
|
argocd bandwhich bat danielfoehrkn/switch/switch derailed/k9s/k9s dive doggo duf dust exa fd fzf
|
||||||
@ -39,27 +35,16 @@ BREW_TOOLS=(
|
|||||||
CARGO_TOOLS=( bottom )
|
CARGO_TOOLS=( bottom )
|
||||||
NODE_TOOLS=( git-split-diffs )
|
NODE_TOOLS=( git-split-diffs )
|
||||||
KREW_TOOLS=( gs outdated tree stern )
|
KREW_TOOLS=( gs outdated tree stern )
|
||||||
APT_TOOLS=( zsh gcc )
|
|
||||||
|
|
||||||
echo "🔵 Installing / updating tools"
|
echo "🔵 Installing / updating tools"
|
||||||
|
|
||||||
# Install Debian/Ubuntu specific packages if apt exists
|
|
||||||
if command -v apt &>/dev/null; then
|
|
||||||
echo "`apt` found on system, assuming Ubuntu/Debian and installing pre-requisites..."
|
|
||||||
sudo apt install -y ${APT_TOOLS}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Homebrew
|
# Homebrew
|
||||||
export HOMEBREW_NO_INSTALL_CLEANUP=true
|
export HOMEBREW_NO_INSTALL_CLEANUP=true
|
||||||
for tool in "${BREW_TOOLS[@]}"
|
for tool in "${BREW_TOOLS[@]}"
|
||||||
do
|
do
|
||||||
printf "${tool}..."
|
printf "${tool}..."
|
||||||
brew upgrade ${tool} &>/dev/null || brew install ${tool} &>/dev/null
|
brew upgrade ${tool} &>/dev/null || brew install ${tool} &>/dev/null
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
printf " ✅\n"
|
printf " ✅\n"
|
||||||
else
|
|
||||||
printf " ❌\n"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Cargo
|
# Cargo
|
||||||
@ -67,11 +52,7 @@ for tool in "${CARGO_TOOLS[@]}"
|
|||||||
do
|
do
|
||||||
printf "${tool}..."
|
printf "${tool}..."
|
||||||
cargo install ${tool} &>/dev/null
|
cargo install ${tool} &>/dev/null
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
printf " ✅\n"
|
printf " ✅\n"
|
||||||
else
|
|
||||||
printf " ❌\n"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Krew
|
# Krew
|
||||||
@ -80,11 +61,7 @@ for tool in "${KREW_TOOLS[@]}"
|
|||||||
do
|
do
|
||||||
printf "${tool}..."
|
printf "${tool}..."
|
||||||
kubectl-krew upgrade ${tool} &>/dev/null || kubectl-krew install ${tool} &>/dev/null
|
kubectl-krew upgrade ${tool} &>/dev/null || kubectl-krew install ${tool} &>/dev/null
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
printf " ✅\n"
|
printf " ✅\n"
|
||||||
else
|
|
||||||
printf " ❌\n"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
fulllink() {
|
fulllink() {
|
||||||
@ -110,11 +87,7 @@ case "${OSTYPE}" in
|
|||||||
do
|
do
|
||||||
printf "${tool}..."
|
printf "${tool}..."
|
||||||
brew upgrade ${tool} &>/dev/null || brew install ${tool} &>/dev/null
|
brew upgrade ${tool} &>/dev/null || brew install ${tool} &>/dev/null
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
printf " ✅\n"
|
printf " ✅\n"
|
||||||
else
|
|
||||||
printf " ❌\n"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user