Updates to fix dependencies

This commit is contained in:
Hannes
2025-11-17 00:05:15 +01:00
parent 4f318e7c12
commit 5f6cda9435
5 changed files with 47 additions and 26 deletions

View File

@@ -36,6 +36,13 @@ alias vdir 'vdir --color=auto'
alias tarnow 'tar -acf '
alias untar 'tar -zxvf '
################# HELPER #####################################################
function help_pdf
echo "Best Tool to combine pdf: PDF Arranger"
echo "Best Tool for OCR: OCRMYPDF but you need to install the teseracts for your languages"
echo "Best Tool to write in PDFs: XOURNAL++"
end
################# STUFF YOU MAY NOT HAVE #####################################
@@ -138,7 +145,11 @@ if test -e /usr/bin/wget
alias wget 'wget -c '
end
alias ocrmypdf 'ocrmypdf --deskew --clean --rotate-pages'
if test -e /usr/bin/ocrmypdf
alias ocrmypdf 'ocrmypdf --deskew --clean --rotate-pages'
else
alias ocrmypdf 'echo "The command 'ocrmypdf' is not installed. Please install 'ocrmypdf' to use this: https://github.com/ocrmypdf/OCRmyPDF"'
end
function rcp
if test (count $argv) -lt 2
@@ -155,6 +166,7 @@ function rmv
end
rsync -avh --progress --remove-source-files $arg
end
function nanorm
if test (count $argv) -lt 1
echo "Usage: nanorm {FILE}"
@@ -172,4 +184,23 @@ if test -e /usr/bin/reflector
alias mirrora='sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist'
alias mirrord='sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist'
alias mirrors='sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist'
end
if test -e $HOME/.config/sway/config
alias sway_config='nano $HOME/.config/sway/config' # Open the fish Config in Text editor
end
if test -e /usr/bin/yazi
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end
else
function yazi
echo "The command 'yazi' is not installed. Please install 'yazi' to use this: https://github.com/sxyazi/yazi"
end
end