From 55a9462ad06287662766d2f8898c6fa0360744d9 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Tue, 9 May 2023 08:58:21 +0300 Subject: [PATCH] Disable atuff that doesn't work in termux --- home/.config/zsh/03-plugins.zsh | 2 ++ home/.config/zsh/04-aliases.zsh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/home/.config/zsh/03-plugins.zsh b/home/.config/zsh/03-plugins.zsh index 7377af6..0aae9f4 100644 --- a/home/.config/zsh/03-plugins.zsh +++ b/home/.config/zsh/03-plugins.zsh @@ -47,5 +47,7 @@ source /usr/share/fzf/key-bindings.zsh source /usr/share/fzf/completion.zsh {%@@ endif @@%} +{%@@ if distro_id != "termux" @@%} # enable https://github.com/nvbn/thefuck eval $(TF_SHELL=zsh thefuck --alias) +{%@@ endif @@%} diff --git a/home/.config/zsh/04-aliases.zsh b/home/.config/zsh/04-aliases.zsh index e59ad83..16d4dfe 100644 --- a/home/.config/zsh/04-aliases.zsh +++ b/home/.config/zsh/04-aliases.zsh @@ -112,8 +112,10 @@ alias jcu='journalctl --user' # switch to desktop mode alias dock='swaymsg output eDP-1 disable' +{%@@ if distro_id != "termux" @@%} # move to trash instead of remove alias rm='trash' +{%@@ endif @@%} # clean stuff clean() {