Skip to content

My ~/.config directory, including my NixOS configs

Notifications You must be signed in to change notification settings

albi005/.config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

~/.config

Install

  1. Install NixOS
    • Use albi as username
    • Select No desktop
  2. Log in as albi and run sh <(curl -L alb1.hu/init)

Bootloader edge cases

  • BIOS instead of UEFI:
# Use grub instead of systemd-boot:
# Disabling systemd-boot enables GRUB
boot.loader.systemd-boot.enable = false;
boot.loader.grub.useOSProber = true; # if dual booting
boot.loader.grub.device = "/dev/sda"; # if needed
boot.loader.efi.canTouchEfiVariables = false;

Cheat sheets

Alacritty

Alacritty features

ctrl+shift+space   vi mode
ctrl+shift+f       search forward
ctrl+shift+b       search backward

nvim cheat sheet

d create dir
% create file
D delete file
 pv explorer
 pf search all
ctrl+p search git
 ps grep
 f format
 y ctrl+c
 n replace all ocurrences of current word
 x chmod x
 a harpoon add
ctrl+e harpoon toggle
ctrl+{htns} harpoon open
:sort
gx open url
gf open file
gv select last selection
  • K: Displays hover information about the symbol under the cursor
  • gd: Jumps to the definition of the symbol under the cursor
  • gD: Jumps to the declaration of the symbol under the cursor
  • gi: Lists all the implementations for the symbol under the cursor
  • go: Jumps to the definition of the type of the symbol under the cursor
  • gr: Lists all the references to the symbol under the cursor
  • gs: Displays signature information about the symbol under the cursor
  • <F2>: Renames all references to the symbol under the cursor
  • <F3>: Format code in current buffer
  • <F4>: Show code actions
  • gl: Show diagnostics
  • [d: previous diagnostic
  • ]d: next diagnostic

tmux cheat sheet

C-b ?    help
C-b c    create window
C-b 1    select window 1
C-b w    window tree
C-b d    deattach

Notes

  • Before editing the ags config run ags init to set up JavaScript types

Bookmarks