https://github.com/pmav99/newdot
My new dotfiles (prezto done right!)
https://github.com/pmav99/newdot
Last synced: about 2 months ago
JSON representation
My new dotfiles (prezto done right!)
- Host: GitHub
- URL: https://github.com/pmav99/newdot
- Owner: pmav99
- Created: 2018-09-01T21:37:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-04T11:53:55.000Z (about 2 months ago)
- Last Synced: 2025-04-04T12:32:18.711Z (about 2 months ago)
- Language: Lua
- Size: 243 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Instructions
In order to use this you need GNU `stow`.
Before running stow you probably want to create the directory structure beforehand so that stow
creates symlinks only for files. More info [here](https://stackoverflow.com/a/4073999/592289)# Zsh
## Setting up Zsh with zprezto.
According to
[this](https://github.com/hlecuanda/prezto/blob/5d2b2a776e3ae1145c25d147869371c3ddf1b274/runcoms/README.md)
PR the proper way to setup `zsh` with `prezto` requires that you do the following steps:1. Install `zsh`
2. `git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"`
3. `git clone --recursive https://github.com/belak/prezto-contrib "${ZDOTDIR:-$HOME}/.zprezto/contrib"`
4. Open a zsh shell.
5. Copy (and not link!) the Runcoms into your `${ZDOTDIR:-$HOME} (the official documentation says
that you should link but this makes it hard to update prezto). So:
```
setopt EXTENDED_GLOB
cd "${ZDOTDIR:-$HOME}"
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
cp "$rcfile" ".${rcfile:t}"
done
```
6. Edit the Runcoms to your liking
7. Profit!If you want to update you run:
1. `cd ${ZPREZTODIR}`
2. `git pull`
3. `git submodule update --init --recursive`
4. `cd ${ZPREZTODIR}/contrib`
5. `git pull`
6. `git submodule update --init --recursive`
7. You compare/merge the updated runcoms with the ones that you copied when you installed prezto.## What's next
In this repo we have several `zsh` directories:
- `zsh_upstream` contains the upstream Runcoms as of `7bb7a7cb6fe02cce77ad3`. We keep this directory
here just for convenience when updating.
- `zsh_desktop` contains the runcoms that I use on my own PCs (desktop and laptop).
- `zsh_remote` contains the runcoms that I use on various VPSs that I manage.So, no matter which machine I use, I am able to create the appropriate symlinks using git stow. E.g.
```
git clone https://github.com/pmav99/newdot ~/.dotfiles
cd .dotfiles
stow zsh_remote
```# Awesome4
For archlinux, this requires the following packages (aur):
- lain-git