diff --git a/users/chloe/home.nix b/users/chloe/home.nix index 5aa9dc9..5bcabdf 100644 --- a/users/chloe/home.nix +++ b/users/chloe/home.nix @@ -13,6 +13,7 @@ in ffmpeg ripgrep uv + nh ]; # packages to install for desktop environments (non-server) desktop = [ @@ -36,9 +37,31 @@ in btop.enable = true; fd.enable = true; hyfetch.enable = true; - zsh.enable = true; # sort-lines:end + # zsh is the shell i use + zsh = { + enable = true; + enableCompletion = true; + autosuggestion.enable = true; + syntaxHighlighting.enable = true; + + history.size = 10000; + + shellAliases = { + switch = "nh darwin switch ~/config"; + }; + profileExtra = '' + function python() { + dirname=$(dirname $1 2>/dev/null) + if [ -z "$dirname" ]; then + dirname=$(pwd) + fi + uv run --project "$dirname" "$@" + } + ''; + }; + # use a git-specific email git.userEmail = "git@paperclover.net";