mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-04-21 18:05:50 +00:00
added pdf opening in fzf
This commit is contained in:
+11
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user