-
This commit is contained in:
parent
08a3217b83
commit
239713bb71
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user