starship python

This commit is contained in:
Tao Tien 2025-01-23 13:16:56 -08:00
parent 51def65244
commit b246f82a41
3 changed files with 15 additions and 9 deletions

View file

@ -2,7 +2,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
aichat aichat
# (llm.withPlugins (ps: with ps; [llm-openrouter])) # (llm.withPlugins (ps: with ps; [llm-openrouter]))
llm # llm
aider-chat aider-chat
# digital # digital
asm-lsp asm-lsp
@ -60,7 +60,12 @@
# python # python
# pypy3 # pypy3
python3 # python3
(python3.withPackages (ps:
with ps; [
llm
# llm-openrouter
]))
# python310Packages.python-lsp-server # python310Packages.python-lsp-server
uv uv
ruff ruff

View file

@ -35,8 +35,8 @@
"compression=zstd" "compression=zstd"
"background_compression=zstd" "background_compression=zstd"
"discard" "discard"
# "fsck" "fsck"
# "fix_errors" "fix_errors"
]; ];
mountpoint = "/"; mountpoint = "/";
}; };

View file

@ -115,8 +115,8 @@ vimcmd_replace_one_symbol = '[](bold fg:color_purple)'
vimcmd_replace_symbol = '[](bold fg:color_purple)' vimcmd_replace_symbol = '[](bold fg:color_purple)'
vimcmd_visual_symbol = '[](bold fg:color_yellow)' vimcmd_visual_symbol = '[](bold fg:color_yellow)'
[[battery.display]] # [[battery.display]]
threshold = 42 # threshold = 42
# custom module for jj status # custom module for jj status
[custom.jj] [custom.jj]
@ -125,7 +125,7 @@ description = "current jj status"
symbol = "" symbol = ""
when = true when = true
command = ''' command = '''
jj root > /dev/null && jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template ' if ((jj root | complete).exit_code == 0) {jj log --no-pager --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '
separate(" ", separate(" ",
"🥋", "🥋",
change_id.shortest(4), change_id.shortest(4),
@ -142,12 +142,13 @@ jj root > /dev/null && jj log --revisions @ --no-graph --ignore-working-copy --c
"(no description set)", "(no description set)",
if(description.first_line().substr(0, 29) == description.first_line(), if(description.first_line().substr(0, 29) == description.first_line(),
description.first_line(), description.first_line(),
description.first_line().substr(0, 29) ++ "", description.first_line().substr(0, 29) ++ "...",
) )
) ++ raw_escape_sequence("\x1b[0m"), ) ++ raw_escape_sequence("\x1b[0m"),
) )
' '}
''' '''
shell = ["nu", "-c"]
# disable git modules # disable git modules
[git_state] [git_state]