refactor: use michaotic username throughout, add cli/kitty/zsh configs and docs
This commit is contained in:
parent
1f960a53a5
commit
5c14cf0539
17 changed files with 509 additions and 36 deletions
57
docs/cheatsheet.md
Normal file
57
docs/cheatsheet.md
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# cheatsheet
|
||||
|
||||
quick commands for daily use.
|
||||
|
||||
## rebuild
|
||||
|
||||
```bash
|
||||
# poppy (macbook)
|
||||
darwin-rebuild switch --flake .#poppy
|
||||
|
||||
# muscari (server)
|
||||
sudo nixos-rebuild switch --flake .#muscari
|
||||
```
|
||||
|
||||
## update
|
||||
|
||||
```bash
|
||||
# update flakes then rebuild
|
||||
nix flake update && darwin-rebuild switch --flake .#poppy
|
||||
```
|
||||
|
||||
## check
|
||||
|
||||
```bash
|
||||
# validate before applying
|
||||
nix flake check
|
||||
|
||||
# dry run (see what would change)
|
||||
darwin-rebuild switch --flake .#poppy --dry-run
|
||||
```
|
||||
|
||||
## cleanup
|
||||
|
||||
```bash
|
||||
# remove old generations
|
||||
nix-collect-garbage -d
|
||||
|
||||
# or with sudo on nixos
|
||||
sudo nix-collect-garbage -d
|
||||
```
|
||||
|
||||
## shell
|
||||
|
||||
```bash
|
||||
ll # detailed list with icons
|
||||
cd <dir> # actually zoxide - remembers frequent paths
|
||||
ff # fastfetch system info
|
||||
```
|
||||
|
||||
## navigation
|
||||
|
||||
```bash
|
||||
cd <partial> # zoxide - jump to frequent dir
|
||||
cd .. # parent directory
|
||||
ctrl+r # fzf history search
|
||||
ctrl+t # fzf file finder
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue