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" 13 12 sandbox =
"elevated" 15 +hide_rate_limit_model_nudge =
true 16 16 hide_full_access_warning =
true 19 -theme =
"inspired-github" 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" 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"]
71 -[
plugins.
"build-web-apps@openai-curated"]
74 -[
plugins.
"build-web-data-visualization@openai-curated"]
77 -[
plugins.
"claude-skills@personal"]
80 73 [
plugins.
"codex-security@openai-curated"]
83 -[
plugins.
"github@openai-curated"]
86 -[
plugins.
"gmail@openai-curated"]
89 -[
plugins.
"google-calendar@openai-curated"]
92 -[
plugins.
"google-drive@openai-curated"]
95 76 [
plugins.
"superpowers@openai-curated"]
99 -url =
"http://127.0.0.1:64342/stream" 102 -hide_rate_limit_model_nudge =
true 103 -hide_full_access_warning =
true 23 +use lib.nu save-
if-changed
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 36 31 let vendor_dir = (
$nu.vendor-autoload-dirs | last)
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" 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 [
20 + if (not (
$path | path exists)) or ((open --raw
$path) !=
$content) {
21 + $content | save --force
$path 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] {
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 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
ModifiedPrevious version contains binary or non-UTF-8 data.
Current version contains binary or non-UTF-8 data.