~repos /config

#brew#nushell

GIT_CONFIG_PARAMETERS="'http.version=HTTP/1.1'" git clone https://git.pyrossh.dev/config/.git config
Discussions: https://groups.google.com/g/rust-embed-devs

Common configuration


Files changed (6) hide show
  1. .gitignore +3 -0
  2. ghostty/config +0 -28
  3. nushell/config.nu +19 -0
  4. nushell/env.nu +8 -3
  5. opencode/opencode.jsonc +3 -0
  6. setup.sh +2 -3
.gitignore CHANGED
@@ -6,3 +6,6 @@ NuGet
6
6
  nushell/history.txt
7
7
  pyrossh_keystore.jks
8
8
  github-copilot
9
+ gh
10
+ .copilot
11
+ rclone
ghostty/config DELETED
@@ -1,28 +0,0 @@
1
- background = #191d27
2
- foreground = #f4f4f4
3
- cursor-color = #feffff
4
- cursor-text = #feffff
5
- selection-background = #89b0e8
6
- selection-foreground = #b16e6c
7
- palette = 0=#000000
8
- palette = 1=#8b1a11
9
- palette = 2=#69c44a
10
- palette = 3=#98992f
11
- palette = 4=#6b61f6
12
- palette = 5=#d257da
13
- palette = 6=#69c1ce
14
- palette = 7=#f4f4f4
15
- palette = 8=#656565
16
- palette = 9=#d22d1f
17
- palette = 10=#62d53f
18
- palette = 11=#e5e54a
19
- palette = 12=#6287f7
20
- palette = 13=#d12ddc
21
- palette = 14=#6287f7
22
- palette = 15=#f4f4f4
23
- font-size = 17
24
- font-family = Ubuntu Mono
25
- font-style = Regular
26
- font-thicken = true
27
- font-thicken-strength = 255
28
- # theme = Monokai Pro Spectrum
nushell/config.nu CHANGED
@@ -893,3 +893,22 @@ $env.config = {
893
893
  ]
894
894
  }
895
895
  source $"($nu.home-path)/.cargo/env.nu"
896
+ def repo-push [] {
897
+ let root = (git rev-parse --show-toplevel | str trim)
898
+ if $root != (pwd) {
899
+ error make {msg: "must be run from the git repo root directory"}
900
+ }
901
+ git gc --prune=now
902
+ git repack -a -d -f --depth=250 --window=250
903
+ git update-server-info
904
+ let tmpdir = (mktemp -d | str trim)
905
+ let repo_name = (basename (pwd))
906
+ # Extract files from HEAD into temp directory
907
+ git archive HEAD | tar -x -C $tmpdir
908
+ # Copy .git directory
909
+ cp -r .git $"($tmpdir)/.git"
910
+ # Sync to remote
911
+ rclone sync -P --http-headers '"Content-Type","application/octet-stream"' $tmpdir $"r2:pyrossh-repos-prd/($repo_name)"
912
+ # Clean up
913
+ rm -rf $tmpdir
914
+ }
nushell/env.nu CHANGED
@@ -31,15 +31,20 @@ $env.PROMPT_INDICATOR = $"(ansi y)$> (ansi reset)"
31
31
 
32
32
  use std "path add"
33
33
  $env.PATH = ($env.PATH | split row (char esep))
34
- $env.JAVA_HOME = "/Applications/Android Studio.app/Contents/jbr/Contents/Home"
34
+ $env.JAVA_HOME = "/opt/homebrew/opt/openjdk@17"
35
35
  $env.ANDROID_HOME = "/Users/pyrossh/Library/Android/sdk"
36
+ $env.ANDROID_SDK_ROOT = "/Users/pyrossh/Library/Android/sdk"
36
- $env.NDK_HOME = "/Users/pyrossh/Library/Android/sdk/ndk/29.0.13113456"
37
+ $env.ANDROID_NDK_ROOT = "/Users/pyrossh/Library/Android/sdk/ndk/29.0.13113456"
37
38
  path add /opt/homebrew/bin
38
- path add /opt/homebrew/opt/openjdk/bin
39
+ path add /opt/homebrew/opt/openjdk@17/bin
39
40
  path add /opt/homebrew/opt/ruby/bin
41
+ path add /opt/homebrew/opt/curl/bin
40
42
  path add ~/.cargo/bin
43
+ path add ~/.pub-cache/bin
44
+ path add ~/Library/Android/sdk/emulator/
41
45
  path add ~/Library/Android/sdk/platform-tools/
42
46
  path add ~/.dotnet
43
47
  path add ~/.dotnet/tools
44
48
  path add ~/.local/bin
45
49
  path add /usr/local/bin
50
+ path add (brew --prefix llvm)/bin
opencode/opencode.jsonc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "$schema": "https://opencode.ai/config.json"
3
+ }
setup.sh CHANGED
@@ -1,13 +1,12 @@
1
- brew install nu helix zellij podman openjdk gradle mas cocoapods bun rclone jandedobbeleer/oh-my-posh/oh-my-posh
1
+ brew install tig nu helix zellij openjdk gradle mas rclone jandedobbeleer/oh-my-posh/oh-my-posh
2
2
 
3
- brew --cask install ghostty void android-studio google-chrome obsidian secretive mpv stats pika font-ubuntu-mono
3
+ brew --cask install ghostty google-chrome obsidian secretive mpv stats pika font-ubuntu-mono
4
4
 
5
5
  mas install 497799835 # installs xcode
6
6
  echo /opt/homebrew/bin/nu | sudo tee -a /etc/shells
7
7
  chsh -s /opt/homebrew/bin/nu
8
8
  launchctl setenv PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin
9
9
  launchctl setenv XDG_CONFIG_HOME /Users/pyrossh/Code/pyrossh/config
10
- launchctl setenv JAVA_HOME "/Applications/Android Studio.app/Contents/jbr/Contents/Home"
11
10
  launchctl setenv ANDROID_HOME ~/Library/Android/sdk
12
11
  launchctl setenv EDITOR hx
13
12
  git config --global --add --bool push.autoSetupRemote true