config
git clone https://git.pyrossh.dev/config
Common configuration
4b638db
— Peter John
2026-11-02T12:00:28+05:30
use zsh
- git/ignore +0 -1
- homebrew/trust.json +0 -12
- homebrew/trust.json.lock +0 -0
- setup.sh +3 -0
- tool_state +0 -6
- zshrc +103 -0
git/ignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
**/.claude/settings.local.json
|
homebrew/trust.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"trustedtaps": [
|
|
3
|
-
"docker/tap"
|
|
4
|
-
],
|
|
5
|
-
"trustedcasks": [
|
|
6
|
-
"docker/tap/sbx",
|
|
7
|
-
"driceroland/tap/search"
|
|
8
|
-
],
|
|
9
|
-
"trustedformulae": [
|
|
10
|
-
"oleksandrchekhovskyi/hax/hax"
|
|
11
|
-
]
|
|
12
|
-
}
|
homebrew/trust.json.lock
DELETED
|
File without changes
|
setup.sh
CHANGED
|
@@ -5,3 +5,6 @@ launchctl setenv XDG_CONFIG_HOME /Users/pyrossh/Code/config
|
|
|
5
5
|
launchctl setenv ANDROID_HOME ~/Library/Android/sdk
|
|
6
6
|
launchctl setenv EDITOR hx
|
|
7
7
|
git config --global --add --bool push.autoSetupRemote true
|
|
8
|
+
|
|
9
|
+
# zshrc lives in this repo; point ~/.zshrc at it (overwrites any existing ~/.zshrc)
|
|
10
|
+
echo 'source ~/Code/config/zshrc' > ~/.zshrc
|
tool_state
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"is-bot": false,
|
|
3
|
-
"last-active-master-version": "e871bd771cfa2e948239792017793b86dfeee9db",
|
|
4
|
-
"last-active-stable-version": "058e0af2c2b57e369d905a03ac9748b0ebf543c6",
|
|
5
|
-
"redisplay-welcome-message": true
|
|
6
|
-
}
|
zshrc
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export XDG_CONFIG_HOME="/Users/pyrossh/Code/config"
|
|
2
|
+
export EDITOR="hx"
|
|
3
|
+
|
|
4
|
+
launchctl setenv XDG_CONFIG_HOME "$XDG_CONFIG_HOME"
|
|
5
|
+
launchctl setenv ANDROID_HOME ~/Library/Android/sdk
|
|
6
|
+
launchctl setenv EDITOR "$EDITOR"
|
|
7
|
+
|
|
8
|
+
launchctl setenv PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin
|
|
9
|
+
|
|
10
|
+
source /opt/homebrew/share/antigen/antigen.zsh
|
|
11
|
+
|
|
12
|
+
antigen use oh-my-zsh
|
|
13
|
+
|
|
14
|
+
antigen bundle git
|
|
15
|
+
antigen bundle command-not-found
|
|
16
|
+
antigen bundle docker
|
|
17
|
+
antigen bundle zsh-users/zsh-completions
|
|
18
|
+
antigen bundle zsh-users/zsh-autosuggestions
|
|
19
|
+
antigen bundle zsh-users/zsh-syntax-highlighting
|
|
20
|
+
antigen bundle zsh-users/zsh-history-substring-search
|
|
21
|
+
|
|
22
|
+
antigen apply
|
|
23
|
+
|
|
24
|
+
alias ls="eza -la --icons --hyperlink --git"
|
|
25
|
+
|
|
26
|
+
# Source Cargo environment
|
|
27
|
+
if [ -f "$HOME/.cargo/env" ]; then
|
|
28
|
+
source "$HOME/.cargo/env"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# =============================================================================
|
|
32
|
+
# Custom Functions
|
|
33
|
+
# =============================================================================
|
|
34
|
+
|
|
35
|
+
repo-push() {
|
|
36
|
+
# Check if we are at the git repo root
|
|
37
|
+
local root
|
|
38
|
+
root=$(git rev-parse --show-toplevel 2>/dev/null | xargs)
|
|
39
|
+
|
|
40
|
+
if [[ "$root" != "$(pwd)" ]]; then
|
|
41
|
+
echo "Error: must be run from the git repo root directory" >&2
|
|
42
|
+
return 1
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
git gc --prune=now
|
|
46
|
+
git repack -a -d -f --depth=250 --window=250
|
|
47
|
+
git update-server-info
|
|
48
|
+
|
|
49
|
+
local repo_name
|
|
50
|
+
repo_name=$(basename "$(pwd)")
|
|
51
|
+
|
|
52
|
+
rclone sync --http-headers '"Content-Type","application/octet-stream"' .git "git:git/$repo_name" --checksum --fast-list --multi-thread-streams=32 -P
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
backup-git() {
|
|
56
|
+
rclone sync git:git "/Volumes/SSD T7/git" --checksum --fast-list --multi-thread-streams=32 -P
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
backup-website() {
|
|
60
|
+
rclone sync website:website "/Volumes/SSD T7/website" --checksum --fast-list --multi-thread-streams=32 -P
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
# =============================================================================
|
|
65
|
+
# Environment Variables
|
|
66
|
+
# =============================================================================
|
|
67
|
+
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/opt/homebrew/share/zsh-syntax-highlighting/highlighters
|
|
68
|
+
export JAVA_HOME="/opt/homebrew/opt/openjdk@17"
|
|
69
|
+
export ANDROID_HOME="/Users/pyrossh/Library/Android/sdk"
|
|
70
|
+
export ANDROID_SDK_ROOT="/Users/pyrossh/Library/Android/sdk"
|
|
71
|
+
export ANDROID_NDK_ROOT="/Users/pyrossh/Library/Android/sdk/ndk/29.0.13113456"
|
|
72
|
+
export ANDROID_NDK_HOME="/Users/pyrossh/Library/Android/sdk/ndk/29.0.13113456"
|
|
73
|
+
|
|
74
|
+
# =============================================================================
|
|
75
|
+
# PATH Configuration
|
|
76
|
+
# =============================================================================
|
|
77
|
+
# Zsh ties the $PATH string to the $path array.
|
|
78
|
+
# We can append elements to the array for a much cleaner look than string chaining.
|
|
79
|
+
path=(
|
|
80
|
+
/opt/homebrew/bin
|
|
81
|
+
/opt/homebrew/opt/openjdk@17/bin
|
|
82
|
+
/opt/homebrew/opt/ruby/bin
|
|
83
|
+
/opt/homebrew/opt/curl/bin
|
|
84
|
+
$HOME/.cargo/bin
|
|
85
|
+
$HOME/.pub-cache/bin
|
|
86
|
+
$HOME/Library/Android/sdk/emulator
|
|
87
|
+
$HOME/Library/Android/sdk/platform-tools
|
|
88
|
+
$HOME/.dotnet
|
|
89
|
+
$HOME/.dotnet/tools
|
|
90
|
+
$HOME/.local/bin
|
|
91
|
+
/usr/local/bin
|
|
92
|
+
$(brew --prefix llvm)/bin
|
|
93
|
+
$path
|
|
94
|
+
)
|
|
95
|
+
export PATH
|
|
96
|
+
|
|
97
|
+
# =============================================================================
|
|
98
|
+
# Prompt (Oh My Posh)
|
|
99
|
+
# =============================================================================
|
|
100
|
+
# Initialize Oh My Posh using your specific theme
|
|
101
|
+
if command -v oh-my-posh &> /dev/null; then
|
|
102
|
+
eval "$(oh-my-posh init zsh --config /opt/homebrew/opt/oh-my-posh/themes/zash.omp.json)"
|
|
103
|
+
fi
|