A repo to manage my cross-platform dotfiles and configurations. This serves three core purposes:
- Preserving some core configurations in case of emergency.
- Synchronizing configurations/environments across machines to minimze the cost of context-switching
- Streamlining the process of configuring new/reset machines in the future
The scripts in this repo are primarily intended for Unix-like environments, although the windows branch has minor adjustments to make some things work in Windows.
-
Clone the git repo
git clone --bare git@github.com:EjPlatzer/dotfiles.git ~/.cfg -
Add cfg alias for managing bare repo
alias cfg = git $'--work-tree=($nu.home-path)' $'--git-dir=($nu.home-path)/.cfg'
-
Disable untracked files
cfg config --local status.showUntrackedFiles no
-
Restore missing files
cfg restore --staged . cfg restore .
You may need to restart the shell for the configurations to take effect.
gitconfiguration filenushell:- configuration
- environment
- scripts
nixpackage list automationstarshippromptneovimeditor:init.vimconfiguration file- using
vim-plugto manage plugins
This approach was inspired by many helpful devs online, but is taken most directly from an Atlassian Git tutorial on managing dotfiles.