Skip to content

Backup and sync my configurations cross-platform (somewhat).

Notifications You must be signed in to change notification settings

EjPlatzer/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

dotfiles

A repo to manage my cross-platform dotfiles and configurations. This serves three core purposes:

  1. Preserving some core configurations in case of emergency.
  2. Synchronizing configurations/environments across machines to minimze the cost of context-switching
  3. 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.

Installation

  1. Clone the git repo

    git clone --bare git@github.com:EjPlatzer/dotfiles.git ~/.cfg
  2. Add cfg alias for managing bare repo

    alias cfg = git $'--work-tree=($nu.home-path)' $'--git-dir=($nu.home-path)/.cfg'
  3. Disable untracked files

    cfg config --local status.showUntrackedFiles no
  4. Restore missing files

    cfg restore --staged .
    cfg restore .

You may need to restart the shell for the configurations to take effect.

Currently Synced

  • git configuration file
  • nushell:
    • configuration
    • environment
    • scripts
  • nix package list automation
  • starship prompt
  • neovim editor:
    • init.vim configuration file
    • using vim-plug to manage plugins

Inspiration and Help

This approach was inspired by many helpful devs online, but is taken most directly from an Atlassian Git tutorial on managing dotfiles.

About

Backup and sync my configurations cross-platform (somewhat).

Resources

Stars

Watchers

Forks