mirror of
https://github.com/andwati/dotfiles.git
synced 2026-10-18 02:52:52 +00:00
Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
344a400b20
|
||
|
|
e5f3bd56a7
|
||
|
|
e3a4c4d9fb
|
||
|
|
7883a71a4c | ||
|
|
67d0202c12 | ||
|
|
9fe219a209 | ||
|
|
391ba10516 |
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user