nbelakovski / configs

Just some configs I like so I don't have to keep recreating them

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

molokai fixes issue with parenthesis matching

robbyrussell is my customization to the default oh-my-zsh theme

To install:

  • Install nix
  • Install nix home manager
  • Create an appropriate home.nix file by copying one of the existing ones and appropriately modifying the username, user folder, and git email
  • rm ~/.config/home-manager/home.nix
  • symlink ~/.config/home-manager/home.nix to the relevant nix file in here, i.e. `ln -s $(pwd)/macbook.nix ~/.config/home-manager/home.nix
  • The following script should essentially work and also it should be mostly idempotent (except for adding multiple entries to /etc/shells)
# Add the unstable channel for a few packages for which we need a more updated version
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable && nix-channel --update
home-manager switch
# For macOS we need to add the bash shell path to the list of approved shells
echo "$HOME/.nix-profile/bin/bash" | sudo tee -a /etc/shells
# And then we change our login shell to the nix-installed bash shell
chsh -s ~/.nix-profile/bin/bash
# Install vim plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Install vim plugins from command line
vim +'PlugInstall --sync' +qa
# Copy this directory's .profile into home. I wouldn't want to make profile read only since sometimes other programs modify it
cp .profile ~/

For macOS iterm these are the instructions to make option+left or option+right to move a word iterm->settings->profiles->keys->key mappings -> remove the things associated with option+left/right iterm->settings->keys->key bindings -> add two key bindings to send escape sequences. left should send b, right sends f

Also for VSCode you'll want to add this to "Keyboard Shortcuts JSON" to have normal ctrl+tab behavior

{
    "key": "ctrl+tab",
    "command": "workbench.action.nextEditor"
},
{
    "key": "ctrl+shift+tab",
    "command": "workbench.action.previousEditor"
}

And also for VSCode you'll want to swtich the default terminal to bash. It may require a computer restart for VSCode to pick up the new path that lets it find the correct bash

About

Just some configs I like so I don't have to keep recreating them


Languages

Language:Vim Script 45.4%Language:Nix 44.8%Language:Shell 7.8%Language:Makefile 2.0%