Compare commits

Author SHA1 Message Date
andwati 344a400b20 updates 2026-09-15 08:16:38 +03:00
andwati e5f3bd56a7 chore(gnupg): extend gpg-agent passphrase cache to reduce pinentry prompts
default-cache-ttl 8h -> 24h, max-cache-ttl 24h -> 7d.
2026-08-12 13:45:20 +03:00
andwati e3a4c4d9fb fix(zsh): remove buggy compinit caching hack causing broken tab completion
The custom fast-path check used an inverted glob qualifier (mh+24 matches
stale dumps, not fresh ones), so on a stale dump it ran `compinit -C`
against the same file oh-my-zsh uses, producing a near-empty completions
cache instead of a real one. Also drops the redundant compinit call the
deno installer appended, since oh-my-zsh already handles it.

Also picks up pending drift: deno FPATH/env sourcing, pnpm home path,
and git init.defaultBranch.
2026-08-12 13:37:50 +03:00
andwatiandGitHub 7883a71a4c Update repo_sync.sh 2026-08-09 18:04:24 +03:00
andwatiandGitHub 67d0202c12 Update repo_sync.sh 2026-08-09 18:04:01 +03:00
andwatiandGitHub 9fe219a209 Add script to clone GitHub repositories 2026-08-09 18:03:30 +03:00
andwatiandGitHub 391ba10516 Merge pull request #2 from andwati/fix/nvm-lazy-load-reliability
fix(zsh): stop lazy-loading nvm, source it eagerly instead
2026-08-04 12:26:47 +03:00
5 changed files with 141 additions and 18 deletions
+55
View File
@@ -6,3 +6,58 @@
gpgsign = true
[tag]
gpgSign = true
[init]
defaultBranch = main
[color]
ui = true
[core]
filemode = false
autocrlf = false
[credential "https://android.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://aomedia.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://beto-core.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://boringssl.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://chromium.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://chrome-internal.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://dawn.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://pdfium.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://quiche.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://skia.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://swiftshader.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
[credential "https://webrtc.googlesource.com"]
helper =
helper = luci
useHttpPath = yes
+2 -2
View File
@@ -1,3 +1,3 @@
default-cache-ttl 28800
max-cache-ttl 86400
default-cache-ttl 86400
max-cache-ttl 604800
pinentry-program /usr/bin/pinentry-qt
+62
View File
@@ -0,0 +1,62 @@
#!/bin/bash
GITHUB_USERNAME="andwati"
DESTINATION_FOLDER=~/dev
# Define colors
GREEN="\e[32m"
BLUE="\e[34m"
RED="\e[31m"
RESET="\e[0m"
clone_repositories() {
local parent_dir=$1
local repo_name=$2
# Clone the repository using GitHub CLI
echo -e "${BLUE}Cloning repository: $repo_name${RESET}"
if gh repo clone "$GITHUB_USERNAME/$repo_name" "$parent_dir/$repo_name"; then
echo -e "${GREEN}Successfully cloned: $repo_name${RESET}"
else
echo -e "${RED}Failed to clone: $repo_name${RESET}"
return
fi
# Move into the cloned repository folder
cd "$parent_dir/$repo_name" || exit
# If there are submodules, initialize and update them
if [ -f ".gitmodules" ]; then
echo -e "${BLUE}Initializing and updating submodules for: $repo_name${RESET}"
git submodule init
git submodule update
fi
}
main() {
# Ensure the destination folder exists
mkdir -p "$DESTINATION_FOLDER"
# Fetch the list of repositories for the user using GitHub CLI, including private and public repos
echo -e "${BLUE}Fetching repositories for user: $GITHUB_USERNAME${RESET}"
repos=$(gh repo list "$GITHUB_USERNAME" --visibility public --limit 100 --json name -q '.[].name')
private_repos=$(gh repo list "$GITHUB_USERNAME" --visibility private --limit 100 --json name -q '.[].name')
# Combine public and private repositories
repos="$repos $private_repos"
# Initialize progress variables
total_repos=$(echo "$repos" | wc -w)
count=0
# Loop through each repository and clone it
for repo in $repos; do
count=$((count + 1))
echo -e "${BLUE}Progress: [$count/$total_repos]${RESET}"
clone_repositories "$DESTINATION_FOLDER" "$repo"
done
echo -e "${GREEN}Cloning complete! ${RESET}"
}
main
+4
View File
@@ -4,3 +4,7 @@ eval "$(pyenv init --path)"
# Created by `pipx` on 2026-07-26 14:32:10
export PATH="$PATH:/home/ian/.local/bin"
# Added by Antigravity CLI installer
export PATH="/home/ian/.local/bin:$PATH"
+18 -16
View File
@@ -1,3 +1,5 @@
# Add deno completions to search path
if [[ ":$FPATH:" != *":/home/ian/.zsh/completions:"* ]]; then export FPATH="/home/ian/.zsh/completions:$FPATH"; fi
# Enable Powerlevel10k instant prompt. Must stay close to the top of ~/.zshrc.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
@@ -11,21 +13,6 @@ if [[ ":$FPATH:" != *":$HOME/.zsh/completions:"* ]]; then export FPATH="$HOME/.z
# Path to your Oh My Zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# oh-my-zsh's own compinit call has no caching: it does a full completion
# rescan (~300ms here) on every single shell start. If we already have a
# same-day dump, load it the fast way ourselves and turn oh-my-zsh's later
# call into a no-op. On a stale/missing dump we do nothing here, so
# oh-my-zsh falls through to its normal (slow but correct) full rebuild.
# If completions ever look stale after changing `plugins=(...)`, run:
# rm -f ~/.zcompdump*; exec zsh
_zcompdump="${ZDOTDIR:-$HOME}/.zcompdump-${HOST/.*/}-${ZSH_VERSION}"
if [[ -n ${_zcompdump}(#qN.mh+24) ]]; then
autoload -Uz compinit
compinit -C -d "$_zcompdump"
compinit() { :; }
fi
unset _zcompdump
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time Oh My Zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
@@ -186,7 +173,7 @@ export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# pnpm
export PNPM_HOME="$HOME/.local/share/pnpm"
export PNPM_HOME="/home/ian/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME/bin:"*) ;;
*) export PATH="$PNPM_HOME/bin:$PATH" ;;
@@ -196,3 +183,18 @@ esac
# Created by `pipx` on 2026-07-26 14:32:10
export PATH="$PATH:/home/ian/.local/bin"
. "/home/ian/.deno/env"
# Java (Amazon Corretto 21) and Android SDK, for Android Studio / Gradle builds.
export JAVA_HOME="/usr/lib/jvm/java-21-amazon-corretto"
export ANDROID_HOME="$HOME/Android/Sdk"
export PATH="$JAVA_HOME/bin:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH"
# Added by Antigravity CLI installer
export PATH="/home/ian/.local/bin:$PATH"
# Resend CLI
export PATH="$HOME/.resend/bin:$PATH"
export PATH="/home/ian/depot_tools:$PATH"