Implement gitspaces [setup]
- default action when no ~/.gitspaces folder
#11
Labels
Milestone
gitspaces [setup]
- default action when no ~/.gitspaces folder
#11
Background
After a user runs
go install /~https://github.com/davfive/gitspaces/v2@latest
for the initial install and run gitspaces for the first time, they are missing two key configurations:The
ProjectPaths
list in~/.gitspaces/config.yml
This list is used to search for projects when switching spaces
The shell wrapper
gitspaces
often needs tocd
into the requested space after an action (e.g., create, sleep, rename, switch). Since thego/bin/gitspaces
runs as a subprocess, it can't change directories in the calling (parent) shell. To address this, I use a shell function wrapper of the same name which looks for a file aftergo/bin/gitspaces
exits successfully andcd
's to it if found.Requirements
go/bin/gitspaces
is being called by the shell function, provide instructions to run the. ~/.gitspaces/<shell>rc
to their shell's rc file (~/.bashrc
or~/.zshrc
) file.The text was updated successfully, but these errors were encountered: