Improve backup script

This commit is contained in:
Thomas Avé 2024-03-16 15:09:58 +01:00
parent 0fa8640c8f
commit dc883900bb
1 changed files with 5 additions and 2 deletions

View File

@ -90,12 +90,15 @@ function zvm_after_init() {
# Use FZY instead of FZF for ctrl-t # Use FZY instead of FZF for ctrl-t
function find_files() { function find_files() {
zle -I zle -I
PATHS=$(fd -H . /home/server/Workspace -t d -d 5) PATHS="/home/server/.dotfiles/"
if [ -d ~/Workspace ]; then
PATHS="$PATHS\n$(fd -H . ~/Workspace -t d -d 5)"
fi
if [ -d ~/Containers ]; then if [ -d ~/Containers ]; then
PATHS="$PATHS\n$(fd -H . ~/Containers -t d -d 2)" PATHS="$PATHS\n$(fd -H . ~/Containers -t d -d 2)"
fi fi
if [ -d /RAID/10/Shared\ Storage/ ]; then if [ -d /RAID/10/Shared\ Storage/ ]; then
PATHS="$PATHS\n/RAID/10/Shared Storage/Thomas" PATHS="$PATHS\n/RAID/10/Shared Storage/"
PATHS="$PATHS\n$(fd -H . /RAID/10/Shared\ Storage -t d -d 2)" PATHS="$PATHS\n$(fd -H . /RAID/10/Shared\ Storage -t d -d 2)"
fi fi
if [ -d /RAID/10/Private\ Storage/Thomas ]; then if [ -d /RAID/10/Private\ Storage/Thomas ]; then