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]