2022-07-10 18:51:26 +02:00
|
|
|
# Dotfiles
|
|
|
|
|
|
|
|
This repository contains useful (config) files that I use on my machines.
|
2022-08-09 00:40:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
## Initialization
|
|
|
|
|
|
|
|
On a freshly set up machine, run:
|
|
|
|
|
|
|
|
```bash
|
2023-04-10 18:03:34 +02:00
|
|
|
curl https://code.webartifex.biz/alexander/dotfiles/-/raw/main/.local/share/dotfiles/setup.sh \
|
|
|
|
> ./setup.sh && source ./setup.sh && rm ./setup.sh
|
2022-08-09 00:40:47 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
This gives you a local copy of the latest version of this repository
|
2023-04-10 17:46:20 +02:00
|
|
|
(located in `$XDG_DATA_HOME/dotfiles`)
|
2022-08-09 00:40:47 +02:00
|
|
|
and initializes all the dotfiles provided here on the system.
|
|
|
|
Further, `zsh` is set up
|
|
|
|
with [`oh-my-zsh`](https://ohmyz.sh/) and [`zplug`](https://github.com/zplug/zplug)
|
|
|
|
if it is installed.
|
|
|
|
|
|
|
|
**Note**: Log out and in again so that `bash` and `zsh` run as *login* shells.
|
|
|
|
Otherwise, `~/.profile` is probably *not* sourced.
|
|
|
|
|
|
|
|
**Important**: Don't forget to back up your current dotfiles!
|
2022-08-09 13:53:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Python Development Environments
|
|
|
|
|
|
|
|
The develop environments for Python are managed via [`pyenv`](https://github.com/pyenv/pyenv).
|
|
|
|
|
|
|
|
To set them up, run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
create-or-update-python-envs
|
|
|
|
```
|
|
|
|
|
|
|
|
Several Python versions are installed.
|
|
|
|
Additionally, two `virtualenv`s, called "interactive" and "utils", are also created:
|
|
|
|
- "interactive" is the default environment, and
|
|
|
|
- "utils" hosts globally available utilities
|
|
|
|
(e.g., [youtube-dl](https://github.com/ytdl-org/youtube-dl/)).
|
|
|
|
|
|
|
|
Use `pyenv local ...` to specify a particular Python binary for a project.
|
2022-08-09 15:17:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Private Dotfiles
|
|
|
|
|
|
|
|
After setting up the Python environments (i.e., the "utils"),
|
|
|
|
running `mackup restore` symlinks further dotfiles into `~/`.
|
|
|
|
This only works for this project's maintainer.
|