From d4ee081bb4dd8a2eb0955ebcd305bdc46235efb4 Mon Sep 17 00:00:00 2001 From: Luna Komorebi Date: Mon, 10 Jun 2024 11:38:40 +0200 Subject: [PATCH] tldr support --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index 6223596..3edf4d9 100644 --- a/.zshrc +++ b/.zshrc @@ -198,6 +198,10 @@ if iscmd zoxide; then eval "$(zoxide init zsh)" fi +if iscmd tldr; then + alias tldrf='tldr --list | fzf --preview "tldr {1} --color=always" --preview-window=right,70% | xargs tldr' +fi + DISABLE_MAGIC_FUNCTIONS=true source $OTHER/func.zsh source "$plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"