This commit is contained in:
m3tam3re 2024-10-05 12:47:05 +00:00
parent 08a3217b83
commit 239713bb71

View File

@ -1,13 +1,15 @@
#!/usr/bin/env fish
# This is a small zellij project switcher
#
# This script is strongly inspired by the Tmux Sessionizer of @ThePrimaegen:
# https://github.com/ThePrimeagen/.dotfiles/blob/master/bin/.local/scripts/tmux-sessionizer
#
# 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 -l IFS ':'
set folders (string split ':' -- $PROJECT_FOLDERS | string replace -r '^~' $HOME)
echo $folders
if count $argv > 1
set selected $argv[1]