Commit Graph
93 Commits
Author SHA1 Message Date
gwbeip 727e4977f8 feat(deepseek api): add balance query and API key management
Add pj deepseek command to query account balance and
pj deepseek setkey to store API key in local cache.

Also extract Python launcher into its own module (pj_python.nu)
and add common aliases (g, c, tree, myip, ports, df, reload, edit).
2026-06-14 11:10:16 +08:00
gwbeip 1b801ef121 Merge remote-tracking branch 'refs/remotes/origin/main' 2026-06-05 10:10:36 +08:00
gwbeip db99887fb5 feat(Bash): only activate fzf keybindings when logging in interactively. 2026-06-05 10:07:00 +08:00
gwbeip 1a8880749e fix(Nushell): 2026-06-03 13:04:25 +08:00
gwbeip 768c1de824 refactor nushell zoxide bootstrap and windows path normalization 2026-05-31 16:16:19 +08:00
gwbeip 7b4c13791c Add Nushell brew and uv helpers 2026-05-31 01:04:45 +08:00
gwbeip 39f94d1c1f feat(nushell): remap fzf history hotkey to alt-r
- change fzf_history_selector keycode from char_h to char_r
2026-05-30 23:57:05 +08:00
gwbeip 804b81a0e5 feat(nushell): gate cache clone behind update flag
- only clone missing nu_scripts cache when using -u/-f

- keep default pj completion as non-cloning check mode

- align completion flag help text with new behavior
2026-05-30 23:19:41 +08:00
gwbeip 356d4ab780 feat(nushell): add auto-bootstrapped completion registry flow
- generate cache registry module from command list and load it at startup

- add pj completion sync (-s) with optional help and restart behavior

- keep missing-cache fallback via noop module and preserve cache ignore rules
2026-05-30 23:12:21 +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 1768d9971e feat(starship): remove golang/nodejs/scala/haskell from prompt 2026-05-29 00:12:50 +08:00
gwbeip 0d208b29d0 fix(Bash): helix alias 2026-05-27 16:21:59 +08:00
gwbeip 8b36c0019f fix(MacOS): async problems 2026-05-27 16:13:41 +08:00
gwbeip ed6dadd5eb fix(MacOS): zsh subprocess uses 100% CPU 2026-05-27 10:40:19 +08:00
gwbeip 4a912cf7e7 feat(ZSH): auto start nushell if it exits when init zsh 2026-05-27 00:13:28 +08:00
gwbeip 59051a86c5 Merge branch 'main' of ssh://gitea.mmeip.cn:8022/gwbeip/TerminalPolyjuice 2026-04-03 16:15:39 +08:00
gwbeip d6e7b8b81f feat(Bash): support bash 2026-04-03 16:15:31 +08:00
gwbeip 6f1e783a56 feat(zsh): typo 2026-02-08 17:38:44 +08:00
gwbeip a9080203f6 feat(zsh): delete the dependency to oh-my-zsh 2026-02-08 17:37:19 +08:00
gwbeip e384a4ad0c nushell .. 2026-02-08 17:21:28 +08:00
gwbeip bbc0d2f0a1 zsh helix 2026-02-04 20:03:17 +08:00
gwbeip 1af9a937d8 nushell completions 2026-02-02 20:33:39 +08:00
gwbeip 0f9b528471 nushell helix 2026-02-02 20:18:50 +08:00
gwbeip 0bb8f0e5e8 nushell alt-l to accept autocomplete 2026-02-02 19:36:49 +08:00
gwbeip 3d22ed9633 helix for zsh 2026-02-01 22:02:25 +08:00
gwbeip e86f9d47e7 zsh fzf 2026-01-31 21:30:00 +08:00
gwbeip 21129ab5b9 zsh fzf alt-f, alt-d, alt-h 2026-01-31 20:28:24 +08:00
gwbeip cacd241cca Merge branch 'main' of ssh://gitea.mmeip.cn:8022/gwbeip/TerminalPolyjuice 2026-01-30 16:48:30 +08:00
gwbeip 05b2a28b94 nushell config 2026-01-30 16:48:11 +08:00
gwbeip 0a6abee3f4 zsh weather/moon/joke 2026-01-29 15:51:30 +08:00
gwbeip 165681a18e nushell support 2026-01-29 15:34:58 +08:00
gwbeip 87a837fdf5 colors 2026-01-27 11:38:01 +08:00
gwbeip db8ec50581 pj prefix for all functions 2026-01-26 14:31:04 +08:00
gwbeip 0a230f59f9 starship related 2026-01-26 14:25:36 +08:00
gwbeip b5f7f2caed ssh color 2026-01-25 20:27:46 +08:00
gwbeip fd12925cef typo 2026-01-25 18:52:14 +08:00
gwbeip c83aa1e9ec prompt directory color 2026-01-25 18:49:34 +08:00
gwbeip cb873c996a prompt 2026-01-25 18:28:37 +08:00
gwbeip e5f3ba75cd typo 2026-01-25 17:10:45 +08:00
gwbeip 56ba5ace2c key bindings 2026-01-25 16:46:36 +08:00
gwbeip 9572e224c6 bindkey -e 2026-01-25 16:23:34 +08:00
gwbeip 885d2a3caa plugins 2026-01-25 14:13:21 +08:00
gwbeip 3585bbfb5a python alias and fzf alias 2026-01-25 11:55:19 +08:00
gwbeip f532737ed9 python alias 2026-01-24 21:45:48 +08:00
gwbeip 1a949c4497 python and zoxide alias 2026-01-23 11:55:27 +08:00
gwbeip b1d7af59a0 update check functions 2026-01-23 11:48:58 +08:00
gwbeip 85a41413a3 update check functions 2026-01-23 10:57:23 +08:00
gwbeip 771604ecba update zed keymap.json 2026-01-23 09:34:45 +08:00
gwbeip a15863b0e5 interactive cd 2026-01-22 22:38:13 +08:00
gwbeip d037c9e2eb fix bug in install_plugins function 2026-01-22 11:56:18 +08:00
gwbeip 12338c877a zed keymap.json 2026-01-22 09:44:52 +08:00
gwbeip 6cf84dccb4 add echo message for check_zsh_polyjuice 2026-01-21 23:19:54 +08:00
gwbeip aca04c9bf9 config startship in zsh 2026-01-21 23:04:05 +08:00
gwbeip c5be794640 reconstruct dir 2026-01-21 22:50:39 +08:00
gwbeip 429f8fc2d6 using startship when it is installedw 2026-01-21 14:13:22 +08:00
gwbeip 15749221e5 add some plugins from oh-my-zsh 2026-01-21 11:34:38 +08:00
gwbeip af348af4b2 feat(Zed): zed's keymap.json 2026-01-20 19:51:42 +08:00
gwbeip b387305048 adjust dir structure 2026-01-20 17:38:57 +08:00
gwbeip e5d07895db deprecate oh-my-zsh framework 2026-01-20 16:16:38 +08:00
gwbeip 7a6ebfc533 feat(python): add virtual env 2026-01-04 09:28:21 +08:00
gwbeip a41adb9461 add zsh confiuration 2025-09-19 16:19:43 +08:00
gwbeip c4597a450c add interactive cd for zsh 2025-05-22 15:40:57 +08:00
gwbeip a7a83d64ea add windows interactive cd 2025-05-22 15:29:51 +08:00
gwbeip fb5ba9f036 feat(pwsh): z command 2025-05-15 21:03:44 +08:00
gwbeip 5fa463e98a change back starship 2025-05-01 08:57:23 +08:00
gwbeip 1985472d91 change symbol in starship 2025-04-30 12:40:51 +08:00
gwbeip 0f170ac4df change starship config 2025-04-29 23:52:27 +08:00
gwbeip f336102714 add brewthu to use THU source of homebrew 2025-04-28 21:08:00 +08:00
gwbeip 4e8a2e158d change symbol of duration time 2025-04-28 20:43:48 +08:00
gwbeip b71ae393a3 modify 2025-04-28 20:42:10 +08:00
gwbeip 851dfaa7d2 enable starship in powershell 2025-04-28 11:45:37 +08:00
gwbeip f803a27418 many changes 2025-04-28 10:31:47 +08:00
gwbeip bbced64364 add zshenv file 2025-04-27 23:15:52 +08:00
gwbeip d264d3061c individual zsh configuration 2025-04-27 22:00:40 +08:00
gwbeip 7b38c2669f adjust ssh-symbol 2025-04-27 13:42:28 +08:00
gwbeip ecad8355eb fix bug 2025-04-27 13:26:48 +08:00
gwbeip 6b41d832da enable starship 2025-04-27 13:21:28 +08:00
gwbeip ed61157663 pwsh using emacs mode 2025-04-24 15:54:18 +08:00
gwbeip 5c9e6eef74 add the config file for Oh-My-Posh in pwsh 2025-04-24 15:49:09 +08:00
gwbeip 7b95ebd9f0 set execution time in zshrc 2025-04-24 11:56:28 +08:00
gwbeip c157abcb30 set execution time in powerlevel10k inside .zshrc 2025-04-24 10:41:03 +08:00
gwbeip 8b9e16f27c using github mirrors to download 2025-04-22 19:39:29 +08:00
gwbeip 5f6f3eacb0 add check.sh for checking if the softwares are installed 2025-04-21 16:48:40 +08:00
gwbeip 2b08d06733 config zsh 2025-04-21 16:39:45 +08:00
gwbeip 595ce5e8bb first commit 2025-04-20 23:12:53 +08:00