From 8049d07e09c95231cbddbbd984bbedbcf6fd29cf Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Mon, 26 Sep 2022 10:39:26 +0300 Subject: [PATCH] Fix TF on termux --- home/.config/zsh/03-plugins.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home/.config/zsh/03-plugins.zsh b/home/.config/zsh/03-plugins.zsh index 9493817f..c86e0fb6 100644 --- a/home/.config/zsh/03-plugins.zsh +++ b/home/.config/zsh/03-plugins.zsh @@ -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)