From dc883900bbfa50b7963480fa5fb563112692fb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= <email@thomasave.be> Date: Sat, 16 Mar 2024 15:09:58 +0100 Subject: [PATCH] Improve backup script --- zsh/.zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index e4364b5..5905353 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -90,12 +90,15 @@ function zvm_after_init() { # Use FZY instead of FZF for ctrl-t function find_files() { 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 PATHS="$PATHS\n$(fd -H . ~/Containers -t d -d 2)" fi 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)" fi if [ -d /RAID/10/Private\ Storage/Thomas ]; then