Skip to content

Instantly share code, notes, and snippets.

View gnmearacaun's full-sized avatar

Briain O'Driscoll gnmearacaun

View GitHub Profile
@jmatsushita
jmatsushita / README
Last active April 28, 2024 14:42
Setup nix, nix-darwin and home-manager from scratch on an M1 Macbook Pro
###
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places.
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of
###. things to watch out for:
### - Check out the `nix-darwin` instructions, as they have changed.
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026
###
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs).
# So here's a minimal Gist which worked for me as an install on a new M1 Pro.
### Variables
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
for_window [app_id="Alacritty" title="swaymenu"] floating enable, border pixel 5, sticky enable
for_window [app_id="Alacritty" title="gopassmenu"] floating enable, border pixel 5, sticky enable
for_window [app_id="Alacritty" title="emojimenu"] floating enable, border pixel 5, sticky enable
for_window [app_id="imv"] floating enable
@matthewjberger
matthewjberger / instructions.md
Last active May 7, 2024 22:01
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@manasthakur
manasthakur / plugins.md
Last active May 2, 2024 05:48
Managing plugins in Vim

Managing plugins in Vim: The basics

Let's say the plugin is at a GitHub URL https://github.com/manasthakur/foo. First get the plugin by either cloning it (git clone https://github.com/manasthakur.foo.git) or simply downloading it as a zip (from its GitHub page).

Adding a plugin in Vim is equivalent to adding the plugin's code properly into its runtimepath (includes the $HOME/.vim directory by default). For example, if the layout of a plugin foo is as follows:

foo/autoload/foo.vim
foo/plugin/foo.vim