Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move apps config and/or data directory under XDG Base Directory #451

Merged

Conversation

machupicchubeta
Copy link
Owner

XDG Base Directory

RSpec

RubyGems

tmux

Bundler

sheldon

rbenv

Starship

IRB

Rustup, Cargo

z

nodenv

pyenv

goenv

enhancd

Instead of putting directories for each architecture horizontally under the XDG Base Directory, put directories for each architecture under the sheldon directory.
This will make the directories directly under the XDG Base Directory clearer.

Refs.
- https://github.com/rossmacarthur/sheldon/blob/6244a30069761d299a7135a0393b0c09b57f5fec/README.md#options
…HE" explicitly

See also:
- https://starship.rs/config/#logging

> By default starship logs warnings and errors into a file named `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, where the session key is corresponding to an instance of your terminal.

- https://wiki.archlinux.org/title/XDG_Base_Directory#Partial
It seems that the use case of using only the Oh My Zsh plugin is not intended, and an error occurs when loading the plugin in sheldon.
I changed the directory arrangement in `SHELDON_CONFIG_DIR` and `SHELDON_DATA_DIR`, and now the error occurs when loading the plugin.

The error was:
```
/Users/machupicchubeta/.local/share/sheldon/zsh/repos/github.com/ohmyzsh/ohmyzsh/plugins/docker/docker.plugin.zsh:60: no such file or directory: /completions/_docker
```
Refs.
- https://github.com/go-nv/goenv/blob/56c9dec4e8184f16b4af886134b44b9eb2edf9b7/ENVIRONMENT_VARIABLES.md

In addition, I added `GOENV_ROOT/shims` to the PATH environment variable to give preference to Go installed with goenv over Homebrew.
For example, rbenv, nodenv, and pyenv add their respective `shims` directories to the top of the PATH environment variable, but goenv did not, and only Go installed with Homebrew was found.
@machupicchubeta machupicchubeta merged commit 557a85d into main Oct 29, 2023
@machupicchubeta machupicchubeta deleted the move_apps_config_and_or_data_dir_under_xdg_base_directory branch October 29, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant