Skip to content

ascarter/dotfiles

Repository files navigation

dotfiles

Unix dotfiles

The dotfiles configuration tool works for macOS and Linux. It should work with any reasonable POSIX OS or devcontainer.

The dotfiles are managed using symlinks. The source file is under the config directory in the location where it should appear in $HOME.

Command line

The dotfiles command can be used to manage the configuration. The following are the available commands:

    Usage     	dotfiles [options] <subcommand>

Subcommands:
    init      	Initialize dotfiles
    status    	Show configuration status
    sync      	Sync configuration
    uninstall 	Uninstall configuration
    update    	Update configuration

Options:
    -d        	Dotfiles directory
    -t        	Target directory
    -v        	Verbose

init

Initialize dotfiles. This command will ensure prerequisites are installed and link the configuration files. The command should be run after the dotfiles are cloned.

dotfiles init

status

Show the status of the configuration files. This command will list the files that are linked, missing, or in conflict.

dotfiles status

sync

Sync the configuration files. This command will adopt any changes and link the files from the dotfiles directory to the target directory.

dotfiles sync

uninstall

Uninstall the configuration files. This command will remove the symlinks created by the dotfiles tool.

dotfiles uninstall

update

Update the configuration files. This command will pull the latest changes from the dotfiles repository and link the files.

dotfiles update

Layout

Path Description
bin Dotfiles tools
config Configuration source files
packages Install scripts for packages
themes Useful themes

Requirements

The following are the minimum requirements for dotfiles to work:

On macOS, Xcode is expected to be installed and configured.

Install

sh -c "$(curl -sSL https://raw.githubusercontent.com/ascarter/dotfiles/main/install.sh)"

Alternate Install

If directly executing script is not desired, clone into a location (recommend ~/.config/dotfiles)

git clone [email protected]:ascarter/dotfiles.git ~/.config/dotfiles
cd ~/.config/dotfiles
./install.sh

Install from branch

sh -c "$(curl -sSL https://raw.githubusercontent.com/ascarter/dotfiles/main/install.sh)" -s -- -b <branch>

Uninstall

Run the uninstall script to remove the symlinks and restore any original files:

cd ~/.config/dotfiles
./uninstall.sh

About

My macOS and Linux dotfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published