mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 05:02:10 +00:00
clean wt rm etc
This commit is contained in:
parent
4b436bdbfa
commit
23f876dc7c
12 changed files with 16 additions and 202 deletions
|
|
@ -1,7 +1,4 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
theme = import ../lib/theme.nix { inherit config; };
|
||||
in
|
||||
{ theme, ... }:
|
||||
{
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
_module.args.theme = import ../lib/theme.nix { inherit config; };
|
||||
|
||||
imports = [
|
||||
./bat.nix
|
||||
./eza.nix
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
theme = import ../lib/theme.nix { inherit config; };
|
||||
in
|
||||
{ theme, ... }:
|
||||
{
|
||||
home.sessionVariables = {
|
||||
FZF_DEFAULT_OPTS_FILE = theme.paths.fzfCurrentFile;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
theme = import ../lib/theme.nix { inherit config; };
|
||||
in
|
||||
{ theme, ... }:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
'')
|
||||
|
|
|
|||
|
|
@ -1,12 +1,9 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
theme,
|
||||
...
|
||||
}:
|
||||
let
|
||||
theme = import ../lib/theme.nix { inherit config; };
|
||||
in
|
||||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
|
|
|
|||
10
home/zsh.nix
10
home/zsh.nix
|
|
@ -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 ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue