mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-04-21 10:01:58 +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
|
||||
|
||||
+5
-1
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user