Zsh: move thefuck to plugins.zsh and fix sourcing fzf on ubuntu
This commit is contained in:
parent
69917f148a
commit
f869d15f7b
2 changed files with 3 additions and 10 deletions
|
@ -39,12 +39,8 @@ zinit ice lucid atinit'zpcompinit'
|
||||||
zinit light zdharma-continuum/fast-syntax-highlighting
|
zinit light zdharma-continuum/fast-syntax-highlighting
|
||||||
|
|
||||||
# use fzf with zsh
|
# use fzf with zsh
|
||||||
{%@@ if distro_id == "arch" @@%}
|
|
||||||
source /usr/share/fzf/key-bindings.zsh
|
source /usr/share/fzf/key-bindings.zsh
|
||||||
source /usr/share/fzf/completion.zsh
|
source /usr/share/fzf/completion.zsh
|
||||||
{%@@ elif distro_id == "ubuntu" @@%}
|
|
||||||
# Source from home directory since ubuntu has
|
# enable https://github.com/nvbn/thefuck
|
||||||
# old version of FZF in it's repositories
|
eval $(thefuck --alias)
|
||||||
source ~/Software/fzf/shell/key-bindings.zsh
|
|
||||||
source ~/Software/fzf/shell/completion.zsh
|
|
||||||
{%@@ endif @@%}
|
|
||||||
|
|
|
@ -248,6 +248,3 @@ dct() {
|
||||||
|
|
||||||
yj -ty < $file_path | docker compose -f - $@
|
yj -ty < $file_path | docker compose -f - $@
|
||||||
}
|
}
|
||||||
|
|
||||||
# enable https://github.com/nvbn/thefuck
|
|
||||||
eval $(thefuck --alias)
|
|
||||||
|
|
Loading…
Reference in a new issue