From cb75834229139be149dbc05630cdc73daf8c081d Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Thu, 12 Jan 2023 18:52:56 +0100 Subject: [PATCH] feat: add alias to filter with fzf through tldr --- fish/config.fish | 3 +++ zsh/zshrc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/fish/config.fish b/fish/config.fish index 257325a..30355f1 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -145,6 +145,9 @@ alias ta 'tmux attach' # Bat alias cat 'bat' +# TLDR +alias tldrf 'tldr --list --single-column | fzf --preview "tldr --color=always {1}" --preview-window=right,70% | xargs tldr' + # Dotfiles Folder alias dotfiles 'cd ~/.dotfiles' diff --git a/zsh/zshrc b/zsh/zshrc index 2f9470f..2179af6 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -438,6 +438,9 @@ alias tn="tmux new -s $(pwd | sed 's/.*\///g')" # Bat alias cat="bat" +# TLDR +alias tldrf='tldr --list --single-column | fzf --preview "tldr --color=always {1}" --preview-window=right,70% | xargs tldr' + # iA Writer alias ia='open $1 -a /Applications/iA\ Writer.app'