From f869d15f7b6d946efa56f7e9752300b733e04e48 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Tue, 20 Sep 2022 23:03:42 +0300 Subject: [PATCH] Zsh: move thefuck to plugins.zsh and fix sourcing fzf on ubuntu --- home/.config/zsh/03-plugins.zsh | 10 +++------- home/.config/zsh/04-aliases.zsh | 3 --- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/home/.config/zsh/03-plugins.zsh b/home/.config/zsh/03-plugins.zsh index ed76062..091e4fe 100644 --- a/home/.config/zsh/03-plugins.zsh +++ b/home/.config/zsh/03-plugins.zsh @@ -39,12 +39,8 @@ zinit ice lucid atinit'zpcompinit' zinit light zdharma-continuum/fast-syntax-highlighting # use fzf with zsh -{%@@ if distro_id == "arch" @@%} source /usr/share/fzf/key-bindings.zsh source /usr/share/fzf/completion.zsh -{%@@ elif distro_id == "ubuntu" @@%} -# Source from home directory since ubuntu has -# old version of FZF in it's repositories -source ~/Software/fzf/shell/key-bindings.zsh -source ~/Software/fzf/shell/completion.zsh -{%@@ endif @@%} + +# enable https://github.com/nvbn/thefuck +eval $(thefuck --alias) diff --git a/home/.config/zsh/04-aliases.zsh b/home/.config/zsh/04-aliases.zsh index b87e8f6..66825cf 100644 --- a/home/.config/zsh/04-aliases.zsh +++ b/home/.config/zsh/04-aliases.zsh @@ -248,6 +248,3 @@ dct() { yj -ty < $file_path | docker compose -f - $@ } - -# enable https://github.com/nvbn/thefuck -eval $(thefuck --alias)