~torresjrjr/dotfiles

.vim & .sh
5 months ago
5 months ago

#dotshell

Syncs the dotfiles of multiple shells from one repository to $HOME. Provides multi-machine and user-local configuration.

#Install

$ cd $HOME
$ git clone https://git.sr.ht/~torresjrjr/.sh

#Usage

dotshell provides the dotshell command, which syncs shell dotfiles stored in $DOTSHELL to $HOME with symbolic links.

The $DOTSHELL variable is set to $HOME/.sh by default.
The dotshell command is located at $DOTSHELL/bin/dotshell.
Run dotshell {shell}... to sync the dotfiles of {shell}....

$ dotshell sh    # syncs `~/.profile`
$ dotshell bash  # syncs `~/.bash_profile` & `~/.bashrc`
$ dotshell zsh   # syncs `~/.zshenv`

Shell dotfiles in the home directory can be removed safetly.
For all shell profiles to take effect, logout and login again.
For all shell rc-files to take effect, source the files.

Local-specific configuration can be achieved by writing dotfiles in $DOTSHELL/local/ with their respective filenames.

#Contribute

Send patches and questions to ~torresjrjr/public-inbox@lists.sr.ht (see git-send-email.io).