Updates to fix dependencies
This commit is contained in:
@@ -11,6 +11,9 @@ end
|
||||
if test -f $HOME/.config/fish/alias.fish
|
||||
source $HOME/.config/fish/alias.fish
|
||||
end
|
||||
eval (zoxide init fish)
|
||||
zoxide init fish | source
|
||||
alias cd='z'
|
||||
|
||||
if test -e /usr/bin/zoxide
|
||||
eval (zoxide init fish)
|
||||
zoxide init fish | source
|
||||
alias cd='z'
|
||||
end
|
||||
|
||||
@@ -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}"
|
||||
@@ -173,3 +185,22 @@ if test -e /usr/bin/reflector
|
||||
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
|
||||
@@ -2,8 +2,6 @@
|
||||
# ~/.config/fish/configs/arch_config.fish
|
||||
#
|
||||
|
||||
alias sway_config='nano $HOME/.config/sway/config' # Open the fish Config in Text editor
|
||||
|
||||
alias git_update='$HOME/.config/fish/scripts/git-update.sh'
|
||||
|
||||
alias mount_all='$HOME/.config/fish/scripts/mount.sh'
|
||||
@@ -13,8 +11,8 @@ alias print_cam='ssh honney@192.168.1.184'
|
||||
|
||||
function updateall
|
||||
# Get current Discord version (if installed)
|
||||
if pacman -Qq discord >/dev/null 2>&1
|
||||
set version_before (pacman -Qq discord)
|
||||
if pacman -Q discord >/dev/null 2>&1
|
||||
set version_before (pacman -Q discord)
|
||||
else
|
||||
set version_before ""
|
||||
end
|
||||
@@ -25,8 +23,8 @@ function updateall
|
||||
flatpak update
|
||||
|
||||
# Get new Discord version (if installed)
|
||||
if pacman -Qq discord >/dev/null 2>&1
|
||||
set version_after (pacman -Qq discord)
|
||||
if pacman -Q discord >/dev/null 2>&1
|
||||
set version_after (pacman -Q discord)
|
||||
else
|
||||
set version_after ""
|
||||
end
|
||||
@@ -51,20 +49,6 @@ function cleanup
|
||||
end
|
||||
end
|
||||
|
||||
function scenedetectenv
|
||||
source ~/.venvs/scenedetect-env/bin/activate.fish
|
||||
set -gx PATH ~/.venvs/scenedetect-env/bin $PATH
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
set -x QT_QPA_PLATFORMTHEME qt5ct
|
||||
|
||||
set -x XCURSOR_THEME "DJ-FOX-C"
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
#
|
||||
alias ff='$HOME/.bin/simple_ffprobe_script'
|
||||
|
||||
alias ssh='env TERM=xterm-256color ssh'
|
||||
|
||||
alias updateall='sudo dnf upgrade --refresh && flatpak update'
|
||||
|
||||
if test -e $HOME/.cargo/bin/eza
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
#
|
||||
# ~/.config/fish/configs/ubuntu_config.fish
|
||||
#
|
||||
|
||||
alias updateall='sudo apt upgrad -y && sudo apt update -y'
|
||||
alias uninstall='sudo apt purge -y'
|
||||
Reference in New Issue
Block a user