added pdf opening in fzf

This commit is contained in:
2026-03-11 11:56:55 +01:00
parent b768d53ab8
commit c96e8fd36b
3 changed files with 19 additions and 2 deletions
+11 -1
View File
@@ -5,4 +5,14 @@ file=$(
) || exit 0
[ -n "$file" ] || exit 0
exec alacritty -e nvim "$HOME/documents/$file"
path="$HOME/documents/$file"
case "$path" in
*.pdf|*.PDF)
exec zathura "$path"
;;
*)
exec alacritty -e nvim "$path"
;;
esac
+5 -1
View File
@@ -13,7 +13,6 @@ case "$HOST" in
esac
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
@@ -58,8 +57,13 @@ alias tk='tmux kill-session -t'
# Pdf alias
alias pdf='zathura'
# GPG TTY Fix
export GPG_TTY=$(tty)
# Fix unreadable color pallete for ExFat File systems
LS_COLORS="$LS_COLORS:ow=01;36:"
export LS_COLORS
# Add local and global bin files to path
export PATH="/home/agres/.npm-global/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
+3
View File
@@ -9,3 +9,6 @@ export GOBIN=$HOME/.local/go/bin
export PATH=$PATH:$GOBIN
export PATH="$HOME/.local/bin:$PATH"
# -- FzF ---
source /usr/share/fzf/completion.zsh