Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0abbcf0fd2 | |||
| 718aa466b6 |
@@ -1,6 +1,23 @@
|
||||
{ self, inputs, ... }:
|
||||
let
|
||||
username = "john";
|
||||
homeEndKeyBindings = ''
|
||||
# Normalize common Home/End escape sequences across terminal emulators.
|
||||
bindkey "^[[H" beginning-of-line
|
||||
bindkey "^[[F" end-of-line
|
||||
bindkey "^[[1~" beginning-of-line
|
||||
bindkey "^[[4~" end-of-line
|
||||
bindkey "^[[7~" beginning-of-line
|
||||
bindkey "^[[8~" end-of-line
|
||||
bindkey "^[OH" beginning-of-line
|
||||
bindkey "^[OF" end-of-line
|
||||
|
||||
# Normalize common Ctrl+Arrow sequences for word-wise movement.
|
||||
bindkey "^[[1;5D" backward-word
|
||||
bindkey "^[[1;5C" forward-word
|
||||
bindkey "^[[5D" backward-word
|
||||
bindkey "^[[5C" forward-word
|
||||
'';
|
||||
in
|
||||
{
|
||||
flake.modules = {
|
||||
@@ -20,7 +37,10 @@ in
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
# syntaxHighlighting.enable = true;
|
||||
initContent = "HOST=$(hostname -s)";
|
||||
initContent = ''
|
||||
HOST=$(hostname -s)
|
||||
${homeEndKeyBindings}
|
||||
'';
|
||||
dotDir = "${config.xdg.configHome}/zsh";
|
||||
history = {
|
||||
append = true;
|
||||
@@ -108,6 +128,8 @@ in
|
||||
|
||||
HOSTNAME=$(hostname -s)
|
||||
|
||||
${homeEndKeyBindings}
|
||||
|
||||
eval "$(direnv hook zsh)"
|
||||
|
||||
${aliasStr}
|
||||
@@ -125,7 +147,6 @@ in
|
||||
sha256 = "0bd8zx0bpri63rnb9dva0rav75d3i2wrzw44h63m75hq5220r26g";
|
||||
})) {
|
||||
palette = "catppuccin_mocha";
|
||||
# username.style_root = "bg:red fg:crust";
|
||||
add_newline = true;
|
||||
line_break.disabled = false;
|
||||
git_status.diverged = "⇕⇡\${ahead_count}⇣\${behind_count}";
|
||||
@@ -136,7 +157,6 @@ in
|
||||
format = "[$ssh_symbol$hostname]($style)";
|
||||
style = "bg:red fg:crust";
|
||||
};
|
||||
# python.disabled = true;
|
||||
format = lib.replaceStrings ["\n"] [""] ''
|
||||
[](red)
|
||||
$os
|
||||
|
||||
Reference in New Issue
Block a user