Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 960 Bytes

File metadata and controls

31 lines (25 loc) · 960 Bytes

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

Examples

# 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

Parameters

Signatures

input output
any any