nixos/modules/home-manager/zsh.nix

42 lines
876 B
Nix

{ pkgs, ... }:
# let
# shellAliases = {
# rebuild-nix = "sudo nixos-rebuild switch --flake /home/jack/nixos/#t480";
# };
# in
{
programs.zsh = {
enable = true;
# inherit shellAliases;
syntaxHighlighting.enable = true;
autosuggestion.enable = true;
initContent = ''
ZSH_AUTOSUGGEST_USE_ASYNC=false
fastfetch -c examples/11
if [[ -n "$IN_NIX_SHELL" ]]; then
PROMPT="%F{blue}[nix-shell]%f $PROMPT"
fi
nix() {
if [[ "$1" == "develop" ]]; then
command nix develop -c zsh "''${@:2}"
else
command nix "$@"
fi
}
'';
oh-my-zsh = {
enable = true;
theme = "gentoo";
plugins = [
"git"
"kubectl"
"helm"
"docker"
];
};
};
programs.bash = {
enable = true;
# inherit shellAliases;
};
}