Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jef/dotfiles

🖥 My dotfiles. Using zsh, zgenom, and chezmoi.
https://github.com/jef/dotfiles

dotfiles zsh

Last synced: 3 months ago
JSON representation

🖥 My dotfiles. Using zsh, zgenom, and chezmoi.

Awesome Lists containing this project

README

        

# dotfiles

This is my no fuss terminal setup. No plugin manager; all self-managed through git.

## Getting started

- Install [Homebrew](http://brew.sh/) if macOS
- Install [yay](https://github.com/Jguer/yay) if Arch Linux
- Install [zsh](https://www.zsh.org/) via package manager
- Run `sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply jef`
- You can continue to get updates with the same command

Have fun! :rocket:

### Recommended tools

- Install [eza](https://github.com/eza-community/eza) for a colorful `ls`
- Install [bat](https://github.com/sharkdp/bat) for better `cat`
- Install [nvim](https://github.com/neovim/neovim) for better `vim`

With these tools installed, you'll get preconfigured aliasing.

## Notes

### SSH

Setting up proper permissions for SSH keys.

```shell
chmod 700 ~/.ssh/
chmod 644 ~/.ssh/config ~/.ssh/known_hosts $public_key
chmod 600 $private_key
```

### GPG

This only really works if you don't mind losing any other keys (than your own).

```shell
# Export public and secret key and ownertrust

gpg -a --export [email protected] > somename-public-gpg.key
gpg -a --export-secret-keys [email protected] > somename-secret-gpg.key
gpg --export-ownertrust > somename-ownertrust-gpg.txt

# Import secret key (which contains the public key) and ownertrust

gpg --import somename-secret-gpg.key
gpg --import-ownertrust somename-ownertrust-gpg.txt
```

> Used from this [gist](https://gist.github.com/chrisroos/1205934).

## AUR

### Updating packages

1. Clone repo: `git clone ssh://[email protected]/$repo.git`
1. Update `PKGBUILD`
1. Edit the file `PKGBUILD` and make necessary changes, i.e. bumping the version number.
1. Update checksums in the PKGBUILD file.
1. Use the tool `updpkgsums` for this. It can be installed by running `sudo pacman -Sy pacman-contrib`. It does the build, and writes the checksum into `PKGBUILD`.
1. Update `.SRCINFO` file.
1. It is generated from `PKGBUILD`, and required for the AUR. Run `makepkg --printsrcinfo > .SRCINFO`
1. Verify before pushing.
1. Run `makepkg -C -f --noconfirm`. If it is successful, your package is OK.
1. Push the changes.