Skip to content

yc-tao/dotmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotmanager

Lightweight dotfiles manager for bash-based Linux servers (works on macOS too). Provides:

  • Git aliases and quality-of-life shell shortcuts
  • Managed SSH config includes
  • Consistent ~/data path via symlink or empty dir

Install

  1. Clone this repo on each machine
git clone <your-fork-or-origin> ~/dotmanager && cd ~/dotmanager
  1. Run the installer
bash install.sh

This will:

  • Symlink git/.gitconfig to ~/.gitconfig
  • Ensure ~/.bashrc sources bash/aliases.sh
  • Ensure ~/.ssh/config includes ~/.ssh/config.d/*.conf and symlink ssh/config.d/dotmanager.conf
  • Create ~/data as a symlink if DOTMANAGER_DATASET_TARGET is set, otherwise an empty directory

Customize

  • Edit Git aliases and settings in git/.gitconfig
  • Edit shell shortcuts in bash/aliases.sh
  • Add SSH hosts in ssh/config.d/dotmanager.conf (or create more files under ssh/config.d/)

Dataset linking

Optionally set a machine-specific dataset target. Create a file .dotmanager.local at the repo root:

DOTMANAGER_DATASET_TARGET=/mnt/datasets

Then re-run the installer. If not set, the installer ensures ~/data exists as an empty directory so relative paths remain stable.

Uninstall (manual)

  • Remove the dotmanager block from ~/.bashrc
  • Remove ~/.ssh/config.d/dotmanager.conf and the include line from ~/.ssh/config if desired
  • Remove or repoint ~/data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages