From b246f82a418ec5c06380a23172d7db6274f84520 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Thu, 23 Jan 2025 13:16:56 -0800 Subject: [PATCH] starship python --- extras/dev.nix | 9 +++++++-- systems/disk-config.nix | 4 ++-- users/tao/starship.toml | 11 ++++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/extras/dev.nix b/extras/dev.nix index e9ba9ea..ca5368a 100644 --- a/extras/dev.nix +++ b/extras/dev.nix @@ -2,7 +2,7 @@ environment.systemPackages = with pkgs; [ aichat # (llm.withPlugins (ps: with ps; [llm-openrouter])) - llm + # llm aider-chat # digital asm-lsp @@ -60,7 +60,12 @@ # python # pypy3 - python3 + # python3 + (python3.withPackages (ps: + with ps; [ + llm + # llm-openrouter + ])) # python310Packages.python-lsp-server uv ruff diff --git a/systems/disk-config.nix b/systems/disk-config.nix index 7d0d35e..2ab9000 100644 --- a/systems/disk-config.nix +++ b/systems/disk-config.nix @@ -35,8 +35,8 @@ "compression=zstd" "background_compression=zstd" "discard" - # "fsck" - # "fix_errors" + "fsck" + "fix_errors" ]; mountpoint = "/"; }; diff --git a/users/tao/starship.toml b/users/tao/starship.toml index 857c1d0..8757d4f 100644 --- a/users/tao/starship.toml +++ b/users/tao/starship.toml @@ -115,8 +115,8 @@ vimcmd_replace_one_symbol = '[](bold fg:color_purple)' vimcmd_replace_symbol = '[](bold fg:color_purple)' vimcmd_visual_symbol = '[](bold fg:color_yellow)' -[[battery.display]] -threshold = 42 +# [[battery.display]] +# threshold = 42 # custom module for jj status [custom.jj] @@ -125,7 +125,7 @@ description = "current jj status" symbol = "" when = true 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(" ", "🥋", change_id.shortest(4), @@ -142,12 +142,13 @@ jj root > /dev/null && jj log --revisions @ --no-graph --ignore-working-copy --c "(no description set)", if(description.first_line().substr(0, 29) == description.first_line(), description.first_line(), - description.first_line().substr(0, 29) ++ "…", + description.first_line().substr(0, 29) ++ "...", ) ) ++ raw_escape_sequence("\x1b[0m"), ) -' +'} ''' +shell = ["nu", "-c"] # disable git modules [git_state]