8000 GitHub - tom-barone/dotfiles: My own dotfiles
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tom-barone/dotfiles

Repository files navigation

dotfiles

My dotfiles across macOS and WSL2/Ubuntu.

Clone and run install.sh. This will

  1. Install everything.
  2. Symlink the all config files.
  3. Test that everything installed correctly.

Terminal

Alacritty + tmux + zsh + nvim.

The git diffs + Github Copilot chat in Vscode are good.

Fonts

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:

Install Notes

Installing software from source

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.

Change the default shell

Assuming zsh is installed with homebrew:

chsh -s "$(brew --prefix)/bin/zsh"

Tmux mouse support and Windows 10

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.

GPG and signed git commits

See the git and GitHub docs.

# 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.

MacOS

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.

Vim commands to remember

: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

About

My own dotfiles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0