A Python package to manage config files and general system configuration.
Table of contents
- Install
python3
- Create a virtual environmnet in
$HOME/.local
namedpython-venv
- Symlink
$HOME/.local/python-venv/bin/python3
to$HOME/.local/python-venv/pybin/p
- Make sure
$HOME/.local/python-venv/pybin/
is in your$PATH
environment variable
For example, if you are using bash
and the apt
package manager, you can run the script <PATH>/<TO>/python-dotsys/pre/setup.sh
and add
# prepend to $PATH only if not already in
[[ ":$PATH:" != *":$HOME/.local/python-venv/pybin/:"* ]] && PATH="$HOME/.local/python-venv/pybin/:${PATH}"
to your $HOME/.bashrc
file.
Run the following commands to
- install the
dotsys
package in the Python virtual environment described in the previous section - symlink
python-dotsys/dotfiles/
into$HOME/.dotfiles/
.
mkdir -p $HOME/code/repos/ && cd $HOME/code/repos/
git clone git@github.com:gbeltramo/python-dotsys.git
cd python-dotsys/
bash pre/setup.sh
export PATH="$HOME/.local/python-venv/pybin:${PATH}"
make install-editable
p -m dotsys --symlinks
bash ~/.dotfiles/git/setup-git.sh
bash ~/.dotfiles/ssh/setup-ssh.sh
p -m dotsys.emacs --packages
Note You also need to byte compile the Elisp packages and tangle the
init.org
config file.