My dotfiles across macOS and WSL2/Ubuntu.
Clone and run install.sh
. This will
- Install everything.
- Symlink the all config files.
- Test that everything installed correctly.
Alacritty + tmux + zsh + nvim.
The git diffs + Github Copilot chat in Vscode are good.
Fonts are in the /fonts
directory, install them however the system wants,
I like Source Code Pro, the font here has been patched (now under the name Sauce Code Pro) to include a bunch of extra glyphs:
All installs that involve cloning a git repo and installing from source, e.g.
zsh-abbr
or
fzf
, clone the repos to $HOME/opt
and
install from there.
Assuming zsh
is installed with homebrew:
chsh -s "$(brew --prefix)/bin/zsh"
For whatever reason, there's an issue with alacritty on Windows 10 that causes tmux mouse mode to not work.
This comment has a workaround for now.
# Generate a new GPG key
gpg --gen-key
# List the keys
gpg --list-keys
# Set the key to use for signing
git config --global user.signingkey <key-id>
# Make sure to always sign commits
git config --global commit.gpgsign true
# Export the public key
gpg --armor --export <key-id>
# Stop the agent (it'll auto restart when needed)
gpgconf --kill gpg-agent
# If you run into 'waiting for lock' issues
rm ~/.gnupg/public-keys.d/pubring.db.lock
The cache time within gpg-agent
can be increased to avoid entering the passphrase too often.
Make sure to add folders like ~/github
as exclusions in Spotlight search.
Otherwise macOS will try index folders like .git
/ node_modules
etc. and slow everything down.
:GBrowse
- Open the current file in the web browser (Github etc.) with optional line range if in visual mode.
<leader>gh
- Show git history for file.
Select range -> :Gclog
To load previous commits that affected that range.
:BufDelete hidden
- Close all buffers not open in a window