Fix TF on termux

This commit is contained in:
Marko Korhonen 2022-09-26 10:39:26 +03:00
parent c81dce80a0
commit 8049d07e09
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

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