Skip to content

Instantly share code, notes, and snippets.

@bryanasdev000
Created May 17, 2021 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanasdev000/6a8ea5f5470579040243c60f7d795413 to your computer and use it in GitHub Desktop.
Save bryanasdev000/6a8ea5f5470579040243c60f7d795413 to your computer and use it in GitHub Desktop.
Snippet for zsh config on NixOS
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