feat: update install scripts

This commit is contained in:
Daniel Bauer
2026-08-08 16:48:37 +02:00
parent 11dfcbb47b
commit 954a667d9d
7 changed files with 15 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
set -e set -euo pipefail
echo "Installing packages" echo "Installing packages"
echo "Updating sources..." echo "Updating sources..."

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail
if ! type zsh > /dev/null; then if ! type zsh > /dev/null; then
echo "Cannnot change default shell to zsh: not installed" echo "Cannnot change default shell to zsh: not installed"
else else

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env bash
set -euo pipefail
if [ ! -d "$HOME/.fzf" ]; then if [ ! -d "$HOME/.fzf" ]; then
echo "Installing fzf into ~/.fzf" echo "Installing fzf into ~/.fzf"

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail
if [ ! -f "$HOME/.local/bin/diff-so-fancy" ]; then if [ ! -f "$HOME/.local/bin/diff-so-fancy" ]; then
echo "Installing diff-so-fance into .local/bin" echo "Installing diff-so-fance into .local/bin"
if [ ! -d "$HOME/.local/lib/diff-so-fancy" ]; then if [ ! -d "$HOME/.local/lib/diff-so-fancy" ]; then

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env bash
set -euo pipefail
if [ ! -d "$HOME/.vim/autoload" ]; then if [ ! -d "$HOME/.vim/autoload" ]; then
echo "setup vim plug" echo "setup vim plug"

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail
# Install TPM # Install TPM
if [[ ! -d ~/.tmux/plugins/tpm ]]; then if [[ ! -d ~/.tmux/plugins/tpm ]]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

View File

@@ -13,8 +13,8 @@ echo "Extracting..."
tar -xzf "/tmp/${TARBALL}" -C /tmp tar -xzf "/tmp/${TARBALL}" -C /tmp
echo "Installing to ${INSTALL_DIR}..." echo "Installing to ${INSTALL_DIR}..."
sudo mv "/tmp/${BINARY_NAME}" "${INSTALL_DIR}/${BINARY_NAME}" mv "/tmp/${BINARY_NAME}" "${INSTALL_DIR}/${BINARY_NAME}"
sudo chmod +x "${INSTALL_DIR}/${BINARY_NAME}" chmod +x "${INSTALL_DIR}/${BINARY_NAME}"
echo "Cleaning up..." echo "Cleaning up..."
rm -f "/tmp/${TARBALL}" rm -f "/tmp/${TARBALL}"