clean wt rm etc

This commit is contained in:
Harivansh Rathi 2026-03-30 22:59:49 -04:00
parent 4b436bdbfa
commit 23f876dc7c
12 changed files with 16 additions and 202 deletions

View file

@ -1,7 +1,4 @@
{ config, ... }:
let
theme = import ../lib/theme.nix { inherit config; };
in
{ theme, ... }:
{
programs.bat = {
enable = true;

View file

@ -1,5 +1,7 @@
{ ... }:
{ config, ... }:
{
_module.args.theme = import ../lib/theme.nix { inherit config; };
imports = [
./bat.nix
./eza.nix

View file

@ -1,7 +1,4 @@
{ config, ... }:
let
theme = import ../lib/theme.nix { inherit config; };
in
{ theme, ... }:
{
home.sessionVariables = {
FZF_DEFAULT_OPTS_FILE = theme.paths.fzfCurrentFile;

View file

@ -1,12 +1,11 @@
{
config,
lib,
pkgs,
hostConfig,
theme,
...
}:
let
theme = import ../lib/theme.nix { inherit config; };
ghosttyConfig = ''
theme = "cozybox-current"
font-family = Berkeley Mono

View file

@ -1,7 +1,4 @@
{ config, ... }:
let
theme = import ../lib/theme.nix { inherit config; };
in
{ theme, ... }:
{
programs.git = {
enable = true;

View file

@ -1,12 +1,9 @@
{
config,
lib,
pkgs,
theme,
...
}:
let
theme = import ../lib/theme.nix { inherit config; };
in
{
home.packages = [ pkgs.pure-prompt ];
@ -38,12 +35,14 @@ in
typeset -g prompt_pure_git_branch_color=$prompt_pure_colors[git:branch]
[[ -n ''${prompt_pure_git_last_dirty_check_timestamp+x} ]] && prompt_pure_git_branch_color=$prompt_pure_colors[git:branch:cached]
# Branch + arrows turn yellow when dirty
# Branch, arrows, and prompt symbol turn yellow when dirty
if [[ -n $prompt_pure_git_dirty ]]; then
prompt_pure_git_branch_color=$prompt_pure_colors[git:dirty]
prompt_pure_colors[git:arrow]=$prompt_pure_colors[git:dirty]
prompt_pure_colors[prompt:success]=$prompt_pure_colors[git:dirty]
else
prompt_pure_colors[git:arrow]=$_codex_pure_default_arrow
prompt_pure_colors[prompt:success]=$_codex_pure_default_success
fi
psvar[12]=; ((''${(M)#jobstates:#suspended:*} != 0)) && psvar[12]=''${PURE_SUSPENDED_JOBS_SYMBOL:-✦}
@ -66,6 +65,7 @@ in
}
typeset -g _codex_pure_default_arrow=$prompt_pure_colors[git:arrow]
typeset -g _codex_pure_default_success=$prompt_pure_colors[prompt:success]
_codex_apply_prompt_theme() {
local mode="$(_codex_read_theme_mode)"
@ -78,6 +78,7 @@ in
fi
typeset -g _codex_pure_default_arrow=$prompt_pure_colors[git:arrow]
typeset -g _codex_pure_default_success=$prompt_pure_colors[prompt:success]
typeset -g _CODEX_LAST_PROMPT_THEME="$mode"
}
'')

View file

@ -1,12 +1,9 @@
{
config,
lib,
pkgs,
theme,
...
}:
let
theme = import ../lib/theme.nix { inherit config; };
in
{
programs.tmux = {
enable = true;

View file

@ -3,11 +3,9 @@
lib,
pkgs,
hostConfig,
theme,
...
}:
let
theme = import ../lib/theme.nix { inherit config; };
in
{
programs.zsh = {
enable = true;
@ -156,12 +154,6 @@ in
_codex_apply_prompt_theme
_codex_apply_highlight_styles
${lib.optionalString hostConfig.isDarwin ''
if command -v wt >/dev/null 2>&1; then
eval "$(command wt config shell init zsh)"
wtc() { wt switch --create --base @ "$@"; }
fi
''}
'')
(lib.mkAfter ''