Created
May 17, 2021 22:26
-
-
Save bryanasdev000/6a8ea5f5470579040243c60f7d795413 to your computer and use it in GitHub Desktop.
Snippet for zsh config on NixOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zsh = { | |
enable = true; | |
autosuggestions.enable = true; | |
enableCompletion = true; | |
syntaxHighlighting.enable = true; | |
interactiveShellInit = '' | |
eval "$(direnv hook zsh)"; | |
eval "$(zoxide init zsh)"; | |
any-nix-shell zsh --info-right | source /dev/stdin;''; | |
promptInit = '' | |
if [ -n $(command fzf-share) ]; then source "$(fzf-share)/key-bindings.zsh"; source "$(fzf-share)/completion.zsh"; fi''; | |
ohMyZsh = { | |
enable = true; | |
plugins = | |
[ "git" "colored-man-pages" "command-not-found" "extract" "nix" ]; | |
customPkgs = with pkgs; [ | |
nix-zsh-completions | |
spaceship-prompt | |
zsh-powerlevel10k | |
]; | |
theme = "spaceship"; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment