From 36663ed7feb83872739cc861364a21f8472de400 Mon Sep 17 00:00:00 2001 From: m3tam3re Date: Mon, 25 Mar 2024 18:25:36 +0100 Subject: [PATCH] 185 current 2024-03-25 10:01:12 24.05.20240316.c75037b 6.6.22 NVIDIA --- zellij-ps.fish | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zellij-ps.fish b/zellij-ps.fish index d3b14d7..dacfb65 100755 --- a/zellij-ps.fish +++ b/zellij-ps.fish @@ -1,9 +1,13 @@ #!/usr/bin/env fish # This is a small zellij project switcher # -# Please add additiones folders to the folders variable +# For defining project folders export the variable $PROJECT_FOLDERS in your favourite shell +# The folders should by delimited by a : +# Fish example: set -x PROJECT_FOLDERS ~/projects:~/Downloads/My Folder -set folders ~/projects +set -l IFS ':' +set folders (string split ':' -- $PROJECT_FOLDERS | string replace -r '^~' $HOME) +echo $folders if count $argv > 1 set selected $argv[1]