/dotfiles

Configuration files for my computer.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Interesting available commands

# to see the diff between two files
diff

Multiple accounts Git/GitHub

Install the github and:

git auth login # with one account
git auth login # with another account
git auth switch # to change between them

Add this to the ~/.ssh/config file:

# GitHub personal
Host personal
HostName github.com
AddKeysToAgent yes
UseKeyChain yes
IdentityFile ~/.ssh/personal
IdentitiesOnly yes

# GitHub work
Host work
HostName github.com
AddKeysToAgent yes
UseKeyChain yes
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes

Then, when you clone a repository, make sure you modify the origin accordingly:

git remote remove origin
git remote add origin git@<personal|work>:<owner>/<repository>.git

Dependencies

brew install zoxide
brew install lazygit

Stow

This is the syslink farm to keep all the configuration files linked with the ones in the repository. Source. You can check .stow-local-ignore.

sudo apt-get install stow
brew install stow # macos

ripgrep

This is needed to support search in neovim.

brew install ripgrep

fd

brew install fd
brew install pyenv
brew install tmux

We also need to install the tmux plugin manager:

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

Remember to press <leader>I (the leader key in my configuration is <C-s>) to install the tmux plugins.

Neovim

brew install neovim

Colorls

brew install ruby
gem install colorls