Nix shell uses zsh now, refactored shell-aliases.nix

This commit is contained in:
Jack Mechem 2026-04-20 11:58:19 -07:00
parent b145eba49c
commit 1eb661726b
2 changed files with 70 additions and 14 deletions

View file

@ -13,6 +13,16 @@
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;