.vim & .sh

9daafb3 gfa*: make tmp files per process

5 months ago

eca45b6 gfa*: fix error return, add maxdepth arg

5 months ago


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


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


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.


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