gm cfg
from nu-git-manager-sugar dotfiles
(see source)
manage dotfiles from anywhere
this command is basically a thin wrapper around the git
command... but for
bare dotfiles.
gm cfg
requires the following environment variables to be defined
DOTFILES_GIT_DIR
: the location where to find the bare repo of the dotfiles, e.g.~/documents/repos/dotfiles
or something like$env.GIT_REPOS_HOME | path join "github.com" "amtoine" "dotfiles"
DOTFILES_WORKTREE
: the actual worktree where the dotfiles live, e.g. the home directory
# list all the files that are tracked as dotfiles
gm cfg ls-files ~
# get the current status of the dotfiles in short format
gm cfg status --short
input | output |
---|---|
any |
any |