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
|
||||
|
||||
# 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)
|
||||
|
|
|
@ -248,6 +248,3 @@ dct() {
|
|||
|
||||
yj -ty < $file_path | docker compose -f - $@
|
||||
}
|
||||
|
||||
# enable https://github.com/nvbn/thefuck
|
||||
eval $(thefuck --alias)
|
||||
|
|
Loading…
Reference in a new issue