repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Modernize Nushell generated autoload

919c2334203fedf0e536cbce7aaa185950aa9b68

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (5)

codex/config.toml

Modified
4 4 approval_policy = "never"
5 5 sandbox_mode = "danger-full-access"
6 6 permission_profile = "disabled"
7 7 approvals_reviewer = "user"
8 8 service_tier = "fast"
9 9 project_doc_fallback_filenames = ["CLAUDE.md"]
10 -approvals_reviewer = "user"
12 11 [windows]
13 12 sandbox = "elevated"
15 14 [notice]
15 +hide_rate_limit_model_nudge = true
16 16 hide_full_access_warning = true
18 18 [tui]
19 -theme = "inspired-github"
19 +theme = "ansi"
20 20 status_line = ["model-with-reasoning", "current-dir", "project-name", "git-branch", "pull-request-number", "branch-changes", "context-used", "five-hour-limit", "weekly-limit", "context-window-size", "fast-mode", "thread-title", "task-progress"]
21 21 status_line_use_colors = true
22 22 session_picker_view = "comfortable"
49 49 [projects.'c:\users\okr\workspace\kkg5']
50 50 trust_level = "trusted"
52 -<<<<<<< HEAD
53 52 [projects.'c:\users\okr\workspace\dotfiles\notes\isp-insoft\kultur\ki_roadmap']
54 53 trust_level = "trusted"
65 64 [projects."/mnt/c/Users/okr/Workspace/kkg-cloud"]
66 65 trust_level = "trusted"
67 +[projects."/home/me/Workspace/dotfiles"]
68 +trust_level = "trusted"
68 70 [plugins."atlassian-rovo@openai-curated"]
69 71 enabled = true
71 -[plugins."build-web-apps@openai-curated"]
72 -enabled = true
74 -[plugins."build-web-data-visualization@openai-curated"]
75 -enabled = true
77 -[plugins."claude-skills@personal"]
78 -enabled = true
80 73 [plugins."codex-security@openai-curated"]
81 74 enabled = true
83 -[plugins."github@openai-curated"]
84 -enabled = true
86 -[plugins."gmail@openai-curated"]
87 -enabled = true
89 -[plugins."google-calendar@openai-curated"]
90 -enabled = true
92 -[plugins."google-drive@openai-curated"]
93 -enabled = true
95 76 [plugins."superpowers@openai-curated"]
96 77 enabled = true
98 -[mcp_servers.idea]
99 -url = "http://127.0.0.1:64342/stream"
101 -[notice]
102 -hide_rate_limit_model_nudge = true
103 -hide_full_access_warning = true

nushell/login.nu

Modified
20 20 use shim.nu
21 21 use git.nu
22 22 use work_scope.nu
23 +use lib.nu save-if-changed
24 25 use std/clip
27 28 NVIM_APPNAME=nvim-minimax nvim ...$rest
30 -let save_if_changed = {|path: path, content: string|
31 - if (not ($path | path exists)) or ((open --raw $path) != $content) {
32 - $content | save --force $path
33 - }
34 -}
36 31 let vendor_dir = ($nu.vendor-autoload-dirs | last)
37 32 mkdir $vendor_dir
39 34 if not (which zoxide | is-empty) {
40 - do $save_if_changed ($vendor_dir | path join "zoxide.nu") (zoxide init nushell)
35 + save-if-changed ($vendor_dir | path join "10-zoxide.nu") (zoxide init nushell)
43 38 if not (which carapace | is-empty) {
59 54 print -e "failed to patch generated carapace nushell completer"
60 55 exit 1
62 - do $save_if_changed ($vendor_dir | path join "carapace.nu") $carapace_config
57 + save-if-changed ($vendor_dir | path join "30-carapace.nu") $carapace_config
65 60 if not (which mise | is-empty) {
68 63 | str replace --all "str upcase" "str uppercase"
69 64 | str replace --all "str downcase" "str lowercase"
71 - do $save_if_changed ($vendor_dir | path join "mise.nu") $mise_config
66 + save-if-changed ($vendor_dir | path join "40-mise.nu") $mise_config
74 69 if not (which niri | is-empty) {
75 - do $save_if_changed ($vendor_dir | path join "niri.nu") (^niri completions nushell)
70 + save-if-changed ($vendor_dir | path join "50-niri.nu") (^niri completions nushell)
78 73 source ($nu.default-config-dir | path join 'secrets.nu')

nushell/modules/lib.nu

Modified
16 +export def save-if-changed [
17 + path: path
18 + content: string
19 +] {
20 + if (not ($path | path exists)) or ((open --raw $path) != $content) {
21 + $content | save --force $path
22 + }

nushell/modules/work_scope.nu

Modified
1 -const GENERATED_FILE = "zzz-work-scope.nu"
1 +const GENERATED_FILE = "90-work-scope.nu"
3 +use lib.nu save-if-changed
3 5 def quote [value: string] {
4 6 $value | to nuon
58 60 ] | str join (char nl)
61 -def save-if-changed [path: path, content: string] {
62 - if (not ($path | path exists)) or ((open --raw $path) != $content) {
63 - $content | save --force $path
64 - }
65 -}
67 63 export def generate [] {
68 64 let config_path = ($nu.default-config-dir | path join modules work_scope.nuon)
69 65 if not ($config_path | path exists) {

zed/settings.json

Modified

Previous version contains binary or non-UTF-8 data.

Current version contains binary or non-UTF-8 data.