Commit Graph
16 Commits
Author SHA1 Message Date
gwbeip deb4e45c4e fix(nushell): improve robustness and clarify abstraction boundaries
- pj_completions: merge into $env.config instead of replacing it wholesale
- pj_completions: use parse-time const for cache dir instead of pwd fallback
- pj_fzf / pj_historyhintcomplete: null-safe keybindings access via ? and default
- pj_helix: replace $env.OS (Windows-only) with $nu.os-info.name; extract shared launcher
- pj_prompt: fix off-by-one in git OID substring (0..7 -> 0..<7)
- pj_prompt: use $nu.os-info.name for OS detection instead of sys host hostname
- pj_prompt: cache git availability in static base, skip per-render which call
- pj_prompt: bind LAST_EXIT_CODE once in right-prompt closure
- pj_brew / pj_uv: add --ignore-errors to hide-env calls
- pj_aliases: convert quote/dadjoke to defs with try/catch error handling
- pj_deepseek: guard curl availability before invoking
- pj_zoxide: add ? to $nu.os-info.name access
- pj_starship: fix null-to-nuon producing "null" string; broaden detection
- nu_polyjuice: load pj_starship module
2026-07-31 00:31:04 +08:00
gwbeip 427fa547a6 fix: replace deprecated str downcase/upcase with str lowercase/uppercase 2026-07-20 15:33:05 +08:00
gwbeip 8544a7ae7b perf(nushell): collapse git calls and disable language probing in prompt 2026-06-14 21:54:02 +08:00
gwbeip 1a8880749e fix(Nushell): 2026-06-03 13:04:25 +08:00
gwbeip 10d133444d feat(nushell): re-export completions for use-based startup
- switch completion module imports to export use so externs propagate

- extend managed completion command set and required file checks

- rename prompt static cache env var to PJ_LEFT_PROMPT_STATIC_PART

- load completion module via use in nu_polyjuice
2026-05-30 21:38:36 +08:00
gwbeip 4aaf4199bd perf(nushell): cache static prompt context
- precompute os symbol, user/host, ssh flag, shell label and newline sequence at startup

- reuse cached values in _pj_left_prompt to reduce per-render overhead
2026-05-30 20:32:42 +08:00
gwbeip 9a0ad9384a feat(nushell): add cached nu_scripts completions bootstrap
- add pj completion command to clone/update nu_scripts cache

- load fixed custom-completions for git/ssh/cargo/uv/rustup from cache

- ignore nushell/cache contents in git while keeping placeholder .gitignore

- source pj_completions at startup and align prompt indicators/newline behavior
2026-05-30 20:29:46 +08:00
gwbeip c660e0d621 refactor nushell prompt helpers and reduce call depth 2026-05-30 16:42:57 +08:00
gwbeip 183c765b07 feat(Nushell): using 'whoami' to obtain username 2026-05-29 22:59:48 +08:00
gwbeip fe6a79626f feat(Nushell): trancate diractory path to git root 2026-05-29 22:32:33 +08:00
gwbeip b8c94de6c6 feat(Nushell): improve prompt rendering 2026-05-29 22:11:03 +08:00
gwbeip fdacaab656 feat(Nushell): improve prompt rendering 2026-05-29 22:08:41 +08:00
gwbeip 2241e10f47 feat(Nushell): remove starship in the prompt rendering 2026-05-29 19:30:55 +08:00
gwbeip 4a912cf7e7 feat(ZSH): auto start nushell if it exits when init zsh 2026-05-27 00:13:28 +08:00
gwbeip 0f9b528471 nushell helix 2026-02-02 20:18:50 +08:00
gwbeip 05b2a28b94 nushell config 2026-01-30 16:48:11 +08:00