Zsh: move thefuck to plugins.zsh and fix sourcing fzf on ubuntu

This commit is contained in:
Marko Korhonen 2022-09-20 23:03:42 +03:00
parent 69917f148a
commit f869d15f7b
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 3 additions and 10 deletions

View file

@ -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)

View file

@ -248,6 +248,3 @@ dct() {
yj -ty < $file_path | docker compose -f - $@
}
# enable https://github.com/nvbn/thefuck
eval $(thefuck --alias)