much nicer shell without powerlevel fuckup
This commit is contained in:
Generated
+12
-12
@@ -8,11 +8,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1788568734,
|
"lastModified": 1788995571,
|
||||||
"narHash": "sha256-SzZaOg5XWeTzPTPYpLsSIb47FjC1jXzmfJVjzl8Xd8Q=",
|
"narHash": "sha256-I58IVp7HfT3TTKZJ5kh7/Lttu9DnRZFC0qmvxnIvIj4=",
|
||||||
"owner": "sadjow",
|
"owner": "sadjow",
|
||||||
"repo": "codex-cli-nix",
|
"repo": "codex-cli-nix",
|
||||||
"rev": "3a0dca3725f6d8b74cfe635a85724d2313731fb4",
|
"rev": "33542c7e7139127a4bac1cbe0fac8c81a570410a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -46,11 +46,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787377438,
|
"lastModified": 1788642154,
|
||||||
"narHash": "sha256-Sxu1NLTD/Ern6hFGLlZmtKCSct3YQXZI/lls8RE1XeM=",
|
"narHash": "sha256-sPpQFVaFTDqO/4vvCAhuAhqTgqN/ygu+9eJcs5eB0js=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "65258d5c65a250189fde2e35f490d15e064c4c62",
|
"rev": "fd0956c99c41ae3c13a73a638f1f7e963aebc4ab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -62,11 +62,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1788405554,
|
"lastModified": 1788921488,
|
||||||
"narHash": "sha256-r2f1oUwixlgq9zOdYLqJLfS/lWBT60/IITjhTKI59JU=",
|
"narHash": "sha256-8+xWRxEkD6l217cIUdRxfeUGS9lQX0hVtUuNVsBaDzk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a5cc6f2c37bf518436dc8d1c288ccd0c43c2f4c4",
|
"rev": "6aefcda9401be8acc2b74244fb3b37520ea1f0a8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -78,11 +78,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1788431191,
|
"lastModified": 1789012029,
|
||||||
"narHash": "sha256-MFClkboDeW56feBCAeAV3Z3J2quGSZFlAOXQ4JjIlIA=",
|
"narHash": "sha256-1CBkBf+Nhggykzlx0jvXrj5rk20btl+tK8Fa8Ml/BL4=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9b9402b959a2276982ddd5ad3652a38b97f7c40b",
|
"rev": "d5dfd8e6716dde34398bc14bc87c10dece9c8c68",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
font.normal.family = "FiraCode Nerd Font";
|
||||||
|
|
||||||
terminal.shell = {
|
terminal.shell = {
|
||||||
program = "${pkgs.tmux}/bin/tmux";
|
program = "${pkgs.tmux}/bin/tmux";
|
||||||
@@ -16,4 +17,3 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
+114
-17
@@ -1,10 +1,93 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings = {
|
||||||
|
add_newline = true;
|
||||||
|
format = "$directory$git_branch$git_status$line_break$character";
|
||||||
|
right_format = "$status$cmd_duration$jobs$direnv$python$nix_shell";
|
||||||
|
|
||||||
|
character = {
|
||||||
|
success_symbol = "[❯](bold fg:#a6e3a1)";
|
||||||
|
error_symbol = "[❯](bold fg:#f38ba8)";
|
||||||
|
vimcmd_symbol = "[❮](bold fg:#cba6f7)";
|
||||||
|
};
|
||||||
|
|
||||||
|
directory = {
|
||||||
|
style = "bold fg:#1e1e2e bg:#89b4fa";
|
||||||
|
format = "[](fg:#89b4fa)[ $path$read_only ]($style)[](fg:#89b4fa) ";
|
||||||
|
truncation_length = 3;
|
||||||
|
truncation_symbol = "…/";
|
||||||
|
truncate_to_repo = false;
|
||||||
|
read_only = " ";
|
||||||
|
};
|
||||||
|
git_branch = {
|
||||||
|
symbol = " ";
|
||||||
|
style = "fg:#1e1e2e bg:#cba6f7";
|
||||||
|
format = "[](fg:#cba6f7)[ $symbol$branch ]($style)[](fg:#cba6f7) ";
|
||||||
|
};
|
||||||
|
git_status = {
|
||||||
|
style = "fg:#f9e2af";
|
||||||
|
format = "[($all_status$ahead_behind )]($style)";
|
||||||
|
conflicted = "~$count ";
|
||||||
|
stashed = "*$count ";
|
||||||
|
staged = "+$count ";
|
||||||
|
modified = "!$count ";
|
||||||
|
renamed = "»$count ";
|
||||||
|
deleted = "✘$count ";
|
||||||
|
untracked = "?$count ";
|
||||||
|
ahead = "⇡$count ";
|
||||||
|
behind = "⇣$count ";
|
||||||
|
};
|
||||||
|
status = {
|
||||||
|
disabled = false;
|
||||||
|
style = "bold fg:#f38ba8";
|
||||||
|
symbol = "✘ ";
|
||||||
|
format = "[ $symbol$status ]($style)";
|
||||||
|
};
|
||||||
|
cmd_duration = {
|
||||||
|
min_time = 3000;
|
||||||
|
style = "fg:#f9e2af";
|
||||||
|
format = "[ $duration ]($style)";
|
||||||
|
};
|
||||||
|
jobs = {
|
||||||
|
style = "fg:#f9e2af";
|
||||||
|
symbol = "⚙ ";
|
||||||
|
format = "[ $symbol$number ]($style)";
|
||||||
|
number_threshold = 1;
|
||||||
|
};
|
||||||
|
direnv = {
|
||||||
|
disabled = false;
|
||||||
|
style = "fg:#f9e2af";
|
||||||
|
format = "[ $symbol$allowed ]($style)";
|
||||||
|
};
|
||||||
|
python = {
|
||||||
|
style = "fg:#a6e3a1";
|
||||||
|
format = "[ $symbol$virtualenv ]($style)";
|
||||||
|
detect_extensions = [ ];
|
||||||
|
detect_files = [ ];
|
||||||
|
detect_folders = [ ];
|
||||||
|
};
|
||||||
|
nix_shell = {
|
||||||
|
style = "fg:#89b4fa";
|
||||||
|
symbol = "";
|
||||||
|
format = "[ $state $symbol ]($style)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dotDir = config.home.homeDirectory;
|
dotDir = config.home.homeDirectory;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
defaultKeymap = "emacs";
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
autosuggestion = {
|
autosuggestion = {
|
||||||
@@ -18,6 +101,35 @@
|
|||||||
|
|
||||||
historySubstringSearch.enable = true;
|
historySubstringSearch.enable = true;
|
||||||
|
|
||||||
|
initContent = ''
|
||||||
|
# Tab opens a menu; arrows navigate it and matching ignores case.
|
||||||
|
zmodload zsh/complist
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||||
|
zstyle ':completion:*' group-name '''
|
||||||
|
zstyle ':completion:*:descriptions' format '%F{yellow}%d%f'
|
||||||
|
|
||||||
|
# Accept ghost text at the end of the line, or one word with Alt+Right.
|
||||||
|
bindkey '^[[C' forward-char
|
||||||
|
bindkey '^[OC' forward-char
|
||||||
|
bindkey '^[[1;3C' forward-word
|
||||||
|
bindkey '^F' autosuggest-accept
|
||||||
|
|
||||||
|
# Pos1/Home and Ende/End in Alacritty and tmux terminal modes.
|
||||||
|
bindkey '^[[H' beginning-of-line
|
||||||
|
bindkey '^[OH' beginning-of-line
|
||||||
|
bindkey '^[[1~' beginning-of-line
|
||||||
|
bindkey '^[[F' end-of-line
|
||||||
|
bindkey '^[OF' end-of-line
|
||||||
|
bindkey '^[[4~' end-of-line
|
||||||
|
|
||||||
|
# Search history for the text already typed (both terminal arrow modes).
|
||||||
|
bindkey '^[[A' history-substring-search-up
|
||||||
|
bindkey '^[OA' history-substring-search-up
|
||||||
|
bindkey '^[[B' history-substring-search-down
|
||||||
|
bindkey '^[OB' history-substring-search-down
|
||||||
|
'';
|
||||||
|
|
||||||
history = {
|
history = {
|
||||||
size = 100000;
|
size = 100000;
|
||||||
save = 100000;
|
save = 100000;
|
||||||
@@ -34,24 +146,9 @@
|
|||||||
extended = true;
|
extended = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
initContent = "source /etc/nixos/home/lukas/common/p10k.zsh";
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = "true";
|
|
||||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=8";
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=8";
|
||||||
ZSH_AUTOSUGGEST_STRATEGY = "history completion";
|
VIRTUAL_ENV_DISABLE_PROMPT = "1";
|
||||||
};
|
|
||||||
|
|
||||||
zplug = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [
|
|
||||||
{
|
|
||||||
name = "romkatv/powerlevel10k";
|
|
||||||
tags = [
|
|
||||||
"as:theme"
|
|
||||||
"depth:1"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
|||||||
Reference in New Issue
Block a user