From 663d6d5ea32960589b07065fd5802aecec541e2b Mon Sep 17 00:00:00 2001 From: andwati <56686898+andwati@users.noreply.github.com> Date: Wed, 28 May 2025 14:05:57 +0300 Subject: [PATCH] cleanup --- .gitconfig | 3 +-- .zshrc | 13 ------------- scripts/zig.sh | 39 --------------------------------------- 3 files changed, 1 insertion(+), 54 deletions(-) delete mode 100644 scripts/zig.sh diff --git a/.gitconfig b/.gitconfig index 25e4a45..52c9c49 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,6 +1,5 @@ [core] editor = nvim - excludesFile = ~/.gitignore fsmonitor = true pager = delta @@ -8,7 +7,7 @@ defaultBranch = main [user] - name = Ian Andwati + name = andwati email = andwatiian@gmail.com [github] diff --git a/.zshrc b/.zshrc index 328cde2..0f54417 100644 --- a/.zshrc +++ b/.zshrc @@ -64,16 +64,3 @@ alias cat='bat' export PYENV_ROOT="$HOME/.pyenv" [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init - zsh)" -eval "$(mise activate bash)" -export PYENV_ROOT="$HOME/.pyenv" -[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" -eval "$(pyenv init - zsh)" -eval "$(mise activate bash)" -export PYENV_ROOT="$HOME/.pyenv" -[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" -eval "$(pyenv init - zsh)" -eval "$(mise activate bash)" -export PYENV_ROOT="$HOME/.pyenv" -[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" -eval "$(pyenv init - zsh)" -eval "$(mise activate bash)" diff --git a/scripts/zig.sh b/scripts/zig.sh deleted file mode 100644 index 553782c..0000000 --- a/scripts/zig.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -set -e - -INSTALL_DIR="$HOME/.local/zig" -mkdir -p "$INSTALL_DIR" - -ZIG_LATEST_URL=$(curl -s https://ziglang.org/download/index.json | jq -r '."0.13.0" | ."x86_64-linux".tarball') -ZIG_TARBALL=$(basename "$ZIG_LATEST_URL") - -if [[ -z "$ZIG_LATEST_URL" || "$ZIG_LATEST_URL" == "null" ]]; then - echo "Error: Failed to fetch Zig download URL" - exit 1 -fi - -cd "$INSTALL_DIR" -curl -LO "$ZIG_LATEST_URL" -tar -xf "$ZIG_TARBALL" --strip-components=1 -rm "$ZIG_TARBALL" - -ZLS_LATEST_URL=$(curl -s https://api.github.com/repos/zigtools/zls/releases/tags/0.13.0 | jq -r '.assets[] | select(.name | test("linux.*x86_64.tar.gz$")) | .browser_download_url') -ZLS_TARBALL=$(basename "$ZLS_LATEST_URL") - -if [[ -z "$ZLS_LATEST_URL" || "$ZLS_LATEST_URL" == "null" ]]; then - echo "Error: Failed to fetch ZLS download URL" - exit 1 -fi - -curl -LO "$ZLS_LATEST_URL" -tar -xf "$ZLS_TARBALL" --strip-components=1 -rm "$ZLS_TARBALL" - -if ! grep -q 'export PATH="$HOME/.local/zig:$PATH"' "$HOME/.zshrc"; then - echo 'export PATH="$HOME/.local/zig:$PATH"' >> "$HOME/.zshrc" -fi - - -export PATH="$HOME/.local/zig:$PATH" -echo "Zig 0.13.0 and ZLS 0.13.0 have been installed in $INSTALL_DIR and added to PATH. Restart your shell or run 'source ~/.zshrc' to apply changes."