mirror of
https://github.com/andwati/dotfiles.git
synced 2026-11-15 08:15:13 +00:00
cleanup
This commit is contained in:
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
[core]
|
[core]
|
||||||
editor = nvim
|
editor = nvim
|
||||||
excludesFile = ~/.gitignore
|
|
||||||
fsmonitor = true
|
fsmonitor = true
|
||||||
pager = delta
|
pager = delta
|
||||||
|
|
||||||
@@ -8,7 +7,7 @@
|
|||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
name = Ian Andwati
|
name = andwati
|
||||||
email = [email protected]
|
email = [email protected]
|
||||||
|
|
||||||
[github]
|
[github]
|
||||||
|
|||||||
@@ -64,16 +64,3 @@ alias cat='bat'
|
|||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
eval "$(pyenv init - zsh)"
|
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)"
|
|
||||||
|
|||||||
@@ -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."
|
|
||||||
Reference in New Issue
Block a user