-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feature: Allow dotfiles to target root #22
Comments
When targetting root, an easy way to mark a group as "root targeting" is by provide a sigil
when using
Globbing should ignore root targeting groups. |
In powershell the Also, I don't think that root groups should be limited to root permissions, since it is not necessarily true that a user does not have access to the directory being configured, even when it is relative to the root. Say for example the destination directory exists in a mounted drive under /mnt. This is probably doubly an issue for windows since configuration files tend to exist in a wide variety of places, not relative to the %USERPROFILE% directory. Accessing another drive without explicitly creating a sym-link that can be followed relative to the %USERPROFILE% is currently impossible, for example. |
I haven't used powershell extensively so I didn't know that. My unix bias really is showing :P
You're 100% correct, I was just laser focused on being able to symlink binaries into one of the root $PATH directories. I'm definitely take that into consideration. |
I've been looking into which sigils are valid in the major shells out there and using something like Besides using
|
If I had my way I'd not touch windows at all. Unfortunately, a lot of software approved by the government/military only ever supports windows, so high-security environments tend to only use unix for servers and embedded systems. Another thing to note is that on windows, drives are mounted next to eachother, rather than as mounted directories relative to root. so you may need special provisions for users on windows selecting the drive. Perhaps treating each drive letter as a folder relative to the root. |
Another thing that that should be considered is some way to reference a folder by an environment variable, for example, Groups
└── cargo
└── %CARGO_HOME
└── config.toml Using this embedded group mnemonic style means you could have single groups that access both the root directory, an env variable directory, and a home directory folder all at once. Groups
└── cargo
├── %CARGO_HOME # Value of $CARGO_HOME
├── ^.cargo # /.cargo/
└── .cargo # $HOME/.cargo/ Note that while |
That's a very smart idea. I think that's much better than what I had in mind :) |
While stow allows changing where to deploy dotfiles via flags tuckr does not, this makes so that one still needs stow to be installed on the system despite tuckr being as capable as it to track and manage dotfiles.
Root targeting should be implemented and allow users to manage global configuration from their home if they so wish.
Note: This has to take into account that when run as sudo the home path becomes the root's
Possible idiom for targeting root:
The text was updated successfully, but these errors were encountered: