WIP: Switch to NixOS #5

Draft
FunctionalHacker wants to merge 1349 commits from nix into main
Showing only changes of commit 8049d07e09 - Show all commits

View file

@ -1,7 +1,7 @@
# install zinit if it's not already installed # install zinit if it's not already installed
if [ ! -f ~/.zinit/bin/zinit.zsh ]; then if [ ! -f ~/.zinit/bin/zinit.zsh ]; then
mkdir ~/.zinit mkdir ~/.zinit
git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin
fi fi
source ~/.zinit/bin/zinit.zsh source ~/.zinit/bin/zinit.zsh
@ -48,4 +48,7 @@ source /usr/share/fzf/completion.zsh
{%@@ endif @@%} {%@@ endif @@%}
# enable https://github.com/nvbn/thefuck # enable https://github.com/nvbn/thefuck
{%@@ if distro_id == "termux" @@%}
eval $(TF_SHELL=zsh thefuck --alias)
{%@@ else @@%}
eval $(thefuck --alias) eval $(thefuck --alias)