Config files for quick setup.
In theory, this should work:
curl -sSL https://raw.githubusercontent.com/yrahul3910/configs/master/bootstrap.sh | bashMost important is probably the neovim config, which mostly works on macOS and Ubuntu.
- GNU Stow
- Neovim
- Firefox
user.js(move this to the right folder) - fish
- zsh
- kitty
- Karabiner
- yazi
- git
- pip
- starship.rs
- kanata
First, checkout the repo to your $HOME directory:
git clone https://github.com/yrahul3910/configs.git
cd configsThen, use GNU Stow to create symlinks to your configs:
stow .fish is configured to use vim bindings, and / in normal mode searches command history using fzf. The following custom functions exist:
mkcdcreates and goes into a new directory.sosources the fish config.up <number>goes up a specified number of directories.tlandtdchange to light and dark theme respectively.copyenvcopies.envfrom this repo (so you'll need one here) to wherever you are. Then, it checks if you're in a git repo. If so, it checks whether the.gitignorecontains a.env; if not (or if there is no.gitignore), it adds it.
See .config/nvim/README.md
Here are the keybindings in tmux/tmux-sessionizer:
<C-a>is the leader.<C-a>fopens a fuzzy-finder within the directories specified intmux-sessionizer, with the depth specified there. It either creates or switches to the session you select.<M-f>is a quick-access to this.
<C-a>wshows a list of tmux windows and sessions in those windows.<C-a>Lgoes back and forth between your current and most recently used session.<C-a>ogoes back and forth between your current and most recently used window.<C-a>,lets you rename windows.<C-a>.lets you re-number windows.<C-a>xlets you delete a window.<C-M-h>and<C-M-l>lets you move to the left and right windows from where you are.<M-1>through<M-4>let you go to the first (through fourth) window.<C-a>Sswaps your current window with another (based on input).
On macOS, home-row mods are implemented using Karabiner-Elements, which I find works a bit better than kanata.
shas mod-tap behavior and maps to (Left) Shift.fhas mod-tap behavior and maps to Left Meta (this is Left Option).- Caps Lock has mod-tap behavior and maps to Escape or Ctrl.
- If for some reason you need Caps Lock, Right Command maps to it.
You will probably want to change the device file location in .config/kanata/config.kbd. Also, if the following does not work, you may want to instead move the systemd config file to /etc/systemd/system instead (and in this case, remove --user).
systemctl --user daemon-reload
systemctl --user enable kanata.service
systemctl --user start kanata.service
systemctl --user status kanata.service