Compare commits
2 Commits
916fd41555
...
0abbcf0fd2
| Author | SHA1 | Date | |
|---|---|---|---|
| 0abbcf0fd2 | |||
| 718aa466b6 |
@@ -1,6 +1,23 @@
|
|||||||
{ self, inputs, ... }:
|
{ self, inputs, ... }:
|
||||||
let
|
let
|
||||||
username = "john";
|
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
|
in
|
||||||
{
|
{
|
||||||
flake.modules = {
|
flake.modules = {
|
||||||
@@ -20,7 +37,10 @@ in
|
|||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
# syntaxHighlighting.enable = true;
|
# syntaxHighlighting.enable = true;
|
||||||
initContent = "HOST=$(hostname -s)";
|
initContent = ''
|
||||||
|
HOST=$(hostname -s)
|
||||||
|
${homeEndKeyBindings}
|
||||||
|
'';
|
||||||
dotDir = "${config.xdg.configHome}/zsh";
|
dotDir = "${config.xdg.configHome}/zsh";
|
||||||
history = {
|
history = {
|
||||||
append = true;
|
append = true;
|
||||||
@@ -108,6 +128,8 @@ in
|
|||||||
|
|
||||||
HOSTNAME=$(hostname -s)
|
HOSTNAME=$(hostname -s)
|
||||||
|
|
||||||
|
${homeEndKeyBindings}
|
||||||
|
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
|
|
||||||
${aliasStr}
|
${aliasStr}
|
||||||
@@ -125,7 +147,6 @@ in
|
|||||||
sha256 = "0bd8zx0bpri63rnb9dva0rav75d3i2wrzw44h63m75hq5220r26g";
|
sha256 = "0bd8zx0bpri63rnb9dva0rav75d3i2wrzw44h63m75hq5220r26g";
|
||||||
})) {
|
})) {
|
||||||
palette = "catppuccin_mocha";
|
palette = "catppuccin_mocha";
|
||||||
# username.style_root = "bg:red fg:crust";
|
|
||||||
add_newline = true;
|
add_newline = true;
|
||||||
line_break.disabled = false;
|
line_break.disabled = false;
|
||||||
git_status.diverged = "⇕⇡\${ahead_count}⇣\${behind_count}";
|
git_status.diverged = "⇕⇡\${ahead_count}⇣\${behind_count}";
|
||||||
@@ -136,7 +157,6 @@ in
|
|||||||
format = "[$ssh_symbol$hostname]($style)";
|
format = "[$ssh_symbol$hostname]($style)";
|
||||||
style = "bg:red fg:crust";
|
style = "bg:red fg:crust";
|
||||||
};
|
};
|
||||||
# python.disabled = true;
|
|
||||||
format = lib.replaceStrings ["\n"] [""] ''
|
format = lib.replaceStrings ["\n"] [""] ''
|
||||||
[](red)
|
[](red)
|
||||||
$os
|
$os
|
||||||
|
|||||||
Reference in New Issue
Block a user