From 60c083cafb306e9273791f93ca4905f68631ce27 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 6 Mar 2024 11:03:01 +0100 Subject: [PATCH] Cheatsheet --- config/aliases.nu | 5 +++++ config/mount.nu | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/aliases.nu b/config/aliases.nu index cb752b5..cf84a83 100644 --- a/config/aliases.nu +++ b/config/aliases.nu @@ -142,3 +142,8 @@ def --env y [] { yazi --cwd-file $cwd_file cd (cat $cwd_file) } + +# Show cheatsheet +def cheat [] { + pueue add -e evince ($env.HOME + '/git/gitea.tforgione.fr/tforgione/cheat/build/main.pdf') +} diff --git a/config/mount.nu b/config/mount.nu index e9e25fc..3599bc0 100644 --- a/config/mount.nu +++ b/config/mount.nu @@ -55,7 +55,7 @@ def mount-disk [] { if ("SECONDARY_DISK_UUID" in $env) { $passphrase | sudo cryptsetup luksOpen ("/dev/disk/by-uuid/" + $env.SECONDARY_DISK_UUID) luks2 - sudo mount /dev/mapper/luks2 /mnt + sudo mount /dev/mapper/luks2 /data } # Some services cannot be started on boot because my encrypted drives are