Zsh: Difference between revisions
→Oh-My-Zsh
imported>Jmarmstrong1207 m (Add syntax highlighting option in example) |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 16: | Line 16: | ||
enable = true; | enable = true; | ||
enableCompletion = true; | enableCompletion = true; | ||
autosuggestions.enable = true; | |||
syntaxHighlighting.enable = true; | syntaxHighlighting.enable = true; | ||
Line 45: | Line 45: | ||
</nowiki>}} | </nowiki>}} | ||
==== Oh-My-Zsh ==== | ==== Oh-My-Zsh ==== | ||
{{file|~/.config/nixpkgs/home.nix|nix|<nowiki> | <code>oh-my-zsh</code> is a framework to manage your ZSH configuration including completion scripts for several CLI tools or custom prompt themes. It is documented in the [https://nixos.org/manual/nixos/stable/#module-programs-zsh-ohmyzsh NixOS manual].{{file|~/.config/nixpkgs/home.nix|nix|<nowiki> | ||
programs.zsh = { | programs.zsh = { | ||
... # Your zsh config | ... # Your zsh config | ||
ohMyZsh = { | |||
enable = true; | enable = true; | ||
plugins = [ "git" "thefuck" ]; | plugins = [ "git" "thefuck" ]; | ||
Line 55: | Line 55: | ||
}; | }; | ||
</nowiki>}} | </nowiki>}} | ||
==== Manual ==== | ==== Manual ==== | ||
{{file|~/.config/nixpkgs/home.nix|nix|<nowiki> | {{file|~/.config/nixpkgs/home.nix|nix|<nowiki> | ||
Line 112: | Line 113: | ||
== See also == | == See also == | ||
* [[Command Shell]] | * [[Command Shell]] | ||
[[Category:Shell]] | |||
[[Category:NixOS Manual]] |