diff options
author | Minijackson <minijackson@riseup.net> | 2024-09-25 21:36:47 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2024-09-25 21:36:47 +0200 |
commit | 77756aa48370fa346ec39bcaaf548890617e7887 (patch) | |
tree | 36a904dc6655a8ff7ae2abbbcd0578c983fc754b /common/commandline | |
parent | 41e3554448016b75d990a2b8413fabbd15b8d1e2 (diff) | |
download | nixos-config-reborn-77756aa48370fa346ec39bcaaf548890617e7887.tar.gz nixos-config-reborn-77756aa48370fa346ec39bcaaf548890617e7887.zip |
common/zsh: switch back to builtin syntax highlighting
fast-syntax-highlighting is buggy for ssh commands
Diffstat (limited to 'common/commandline')
-rw-r--r-- | common/commandline/zsh.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/common/commandline/zsh.nix b/common/commandline/zsh.nix index 919edb3..f2a052b 100644 --- a/common/commandline/zsh.nix +++ b/common/commandline/zsh.nix | |||
@@ -47,6 +47,15 @@ in | |||
47 | # Grml handles that, and supports cache (faster!!!) | 47 | # Grml handles that, and supports cache (faster!!!) |
48 | enableGlobalCompInit = false; | 48 | enableGlobalCompInit = false; |
49 | 49 | ||
50 | syntaxHighlighting = { | ||
51 | enable = true; | ||
52 | highlighters = [ | ||
53 | "main" | ||
54 | "brackets" | ||
55 | "line" | ||
56 | ]; | ||
57 | }; | ||
58 | |||
50 | shellAliases = { | 59 | shellAliases = { |
51 | e = "\${(z)EDITOR}"; | 60 | e = "\${(z)EDITOR}"; |
52 | # Space at the end makes Zsh expand aliases after "sudo" | 61 | # Space at the end makes Zsh expand aliases after "sudo" |
@@ -91,11 +100,6 @@ in | |||
91 | src = inputs.shmart-prompt-dir; | 100 | src = inputs.shmart-prompt-dir; |
92 | file = "none"; | 101 | file = "none"; |
93 | } | 102 | } |
94 | |||
95 | { | ||
96 | name = "fast-syntax-highlighting"; | ||
97 | src = "${pkgs.unstable.zsh-fast-syntax-highlighting}/share/zsh/site-functions"; | ||
98 | } | ||
99 | ]; | 103 | ]; |
100 | }; | 104 | }; |
101 | } | 105 | } |