Sharing dotfiles etc between bluefin, bluefin-cli and distroboxes

What is the optimal way to handle dot files in various distroboxes. And sharing things between them.

This is also needed for neovim, since sometimes I want to open neovim inside the specific folder while being inside the distro, similarly, how to open main vscode from inside the distro that is connected (basically running like devcontainer) inside that distrobox.

I’m confused on this one. What setup are you trying to achieve?

Well for example, I install fzf in main fedora using the homebrew, it creates a few files in fedora home, and now I open the arch through distrobox, and since it uses same .zshrc file as the main fedora, it tries to fetch the fzf keybindings file, but fails even if they are in main folder, it starts giving such errors -

redflame@arch ~> zsh
/var/home/redflame/.zshrc:17: no such file or directory: /home/linuxbrew/.linuxbrew/bin/brew
/var/home/redflame/.zshrc:43: command not found: zoxide
/var/home/redflame/.zshrc:45: command not found: starship
/var/home/redflame/.fzf.zsh:source:9: no such file or directory: /home/linuxbrew/.linuxbrew/opt/fzf/shell/completion.zsh
/var/home/redflame/.fzf.zsh:source:13: no such file or directory: /home/linuxbrew/.linuxbrew/opt/fzf/shell/key-bindings.zsh
arch% 

eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
source /var/home/redflame/.fleek/init.sh


### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
    print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
    command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
    command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
        print -P "%F{33} %F{34}Installation successful.%f%b" || \
        print -P "%F{160} The clone has failed.%f%b"
fi

source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit

# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
    zdharma-continuum/zinit-annex-as-monitor \
    zdharma-continuum/zinit-annex-patch-dl


### End of Zinit's installer chunk

eval "$(zoxide init zsh)"

eval "$(starship init zsh)"

source /var/home/redflame/Dots/configs.zsh
source /var/home/redflame/Dots/aliases.zsh
source /var/home/redflame/Dots/plugins.zsh

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

Also since the default .zshrc references the linuxbrew, do I need to install it on every distrobox?

Yeah probably, if you want them to not collide you need to specific a -h in distrobox for the arch container. Or install it in all the containers you use for it to be transparent.

Also fzf comes included out of the box already, which isn’t important in the issue you’re having, just thought I’d point it out. :smiley:

I think if we also mount the /home/linuxbrew as it is in the distrobox, it should fix this error. no idea how, need to check

Distrobox supports passing in extra mounts via the -v flag I believe