Configurations for my terminal, shell, and editor managed by git and GNU Stow
git clone https://github.com/epilande/dotfiles.git ~/.dotfiles
Create symlinks for all configurations:
stow --target=$HOME */
Create a symlink for a specific individual package (e.g., Neovim):
stow --target=$HOME nvim # ... and any other configuration you want
Install specified packages, casks, and taps listed in the Brewfile (requires Homebrew):
brew bundle
Check if all dependencies listed in the Brewfile are installed:
brew bundle check --verbose
Generate a Brewfile from the list of currently installed Homebrew pakcages, casks, and taps:
brew bundle dump
All files in ~/.config/zsh/*
are automatically sourced.
Local configuration files for sensitive settings are ignored via .gitignore
:
zsh/.config/zsh/*local*.zsh
This allows you to have local configuration files for any sensitive configurations that should not be included in source control.
Install Tmux Plugin Manager (TPM):
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Once TPM is installed, press prefix + I
to install plugins listed in tmux/.config/tmux/plugins.conf
.
Similarly to Zsh, local Tmux configurations are sourced if ~/.config/tmux/local.conf
exists.
Tmux is configured with several custom key bindings to enhance productivity and ease of use. Here are the most notable mappings:
Key Binding | Description |
---|---|
prefix + r |
Reload tmux configuration |
prefix + | |
Split window vertically |
prefix + - |
Split window horizontally |
prefix + h/j/k/l |
Navigate panes |
prefix + C-h/C-l |
Switch to previous/next window |
M-t (β₯ + t) |
Open Tmux Toolbox menu |
M-g (β₯ + g) |
Toggle Lazygit in a popup window |
M-n (β₯ + n) |
Toggle "notes" session in a popup window |
prefix + C-f |
Fuzzy find and switch between tmux windows |
prefix + b |
Switch to the last active session |
-
Tmux Toolbox (
M-t
): A menu providing quick access to common tmux actions like creating new windows/sessions, changing layouts, and managing panes. -
Lazygit Integration (
M-g
): Instantly access git operations in a popup window from anywhere within tmux. This allows you to manage your git repositories without leaving your current session, whether you're in Neovim, browsing files, or running any other process. The popup can be easily toggled, maintaining your workflow continuity. -
Notes Session (
M-n
): Toggle a dedicated "notes" tmux session accessible from anywhere. If you're in another session, this will open your notes in a popup window, allowing quick access to your notes without disrupting your current work context. -
Fuzzy Find Windows (
prefix + C-f
): Open a fuzzy finder to quickly switch between tmux windows using a customtmw
script.
For a complete list of key bindings, refer to tmux/.config/tmux/keymaps.conf
.
If you're experiencing an issue where tmux repeats characters unexpectedly
infocmp -x tmux-256color >tmux-256color.src
tic -x tmux-256color.src
My primary Neovim configuration uses LazyVim as a base, located in nvim/.config/nvim-lazyvim
, and for quick access I have aliased it as lv
.
In addition to LazyVim, I have several other Neovim configurations that I can easily switch between using the nvims
function. This function provides a menu for selecting different configurations, allowing me to test and experiment with various Neovim setups.
If you see boxes β‘
, this means your current font doesn't support Powerline and Nerd Fonts. Install a Nerd Font from https://www.nerdfonts.com/ for shell and Neovim icons. After installation, you will need to configure your GUI/Terminal to use the font.
Karabiner-Elements is a powerful keyboard customizer for MacOS. I use it to modify my keyboard behavior and improve my workflow. My configuration file is located at karabiner/.config/karabiner/karabiner.json
. This setup allows me to maintain a consistent typing experience across different keyboards and computers.
- Caps Lock Remap: βͺ Caps Lock is remapped to act as β Control when held, and β Escape when tapped.
- Hyper Key: Holding β₯ Tab acts as a "Hyper" key (Command+Shift+Control+Option), while tapping Tab functions as normal.
- Meh Key: Holding \ Backslash acts as a "Meh" key (Shift+Control+Option), while tapping \ Backslash types \ as normal.
The Hyper and Meh keys allow me to set up a large number of unique shortcuts for various applications and system functions.
WezTerm is a powerful, GPU-accelerated cross-platform terminal emulator and multiplexer. Its Lua-based configuration enables deep customization, allowing for a highly tailored and efficient terminal experience that adapts to your workflow.
Key Binding | Action |
---|---|
CMD + t |
Create new tmux window |
CMD + x |
Close tmux pane |
CMD + [1-9,0] |
Switch to tmux window 1-10 |
CMD + SHIFT + P |
Activate command palette |
For a complete list of key bindings, refer to wezterm/.config/wezterm/wezterm.lua
.
Local configurations are managed separately, kept outside of source control. This is particularly useful for storing sensitive settings or configurations that are specific to individual computers and not needed on other systems.
Directory structure of my local configurations
β― tree -P '*local*' --prune -aC
.
βββ nvim
βΒ Β βββ .config
βΒ Β βββ nvim-lazyvim
βΒ Β βββ lua
βΒ Β βββ plugins
βΒ Β βββ local.lua
βββ tmux
βΒ Β βββ .config
βΒ Β βββ tmux
βΒ Β βββ local.conf
βββ zsh
βββ .config
βββ zsh
βββ local-aliases.zsh
βββ local.zsh