Skip to content

Commit

Permalink
stage ujust changes from pr
Browse files Browse the repository at this point in the history
  • Loading branch information
b- committed Oct 14, 2023
1 parent efce60b commit 3adab49
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions usr/share/ublue-os/just/00-default.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# vim: set ft=make :

set allow-duplicate-recipes
set ignore-comments

_default:
@just --unstable --list --list-heading $'Available commands:\n' --list-prefix $' - '

# Boot into this device's BIOS/UEFI screen
bios:
systemctl reboot --firmware-setup

# Change the user's shell
chsh new_shell:
#!/usr/bin/env bash
set -euo pipefail
if [ "{{shell}}" = "{{new_shell}}" ] ; then
printf "Your shell is already set to %s.\n" "{{new_shell}}"
else
if [ -x "{{new_shell}}" ] ; then
sudo usermod $USER --shell "{{new_shell}}"
printf "%s's shell is now %s.\n" "$USER" "{{new_shell}}"
else
echo "{{new_shell}} does not exist or is not executable!"
fi
fi

# Regenerate GRUB config, useful in dual-boot scenarios where a second operating system isn't listed
regenerate-grub:
#!/usr/bin/env bash
if [ -d /sys/firmware/efi ]; then
sudo grub2-mkconfig -o /etc/grub2-efi.cfg
else
sudo grub2-mkconfig -o /etc/grub2.cfg
fi

# Show the changelog
changelogs:
rpm-ostree db diff --changelogs

# Enroll Nvidia driver & KMOD signing key for secure boot - Enter password "ublue-os" if prompted
enroll-secure-boot-key:
sudo mokutil --import /etc/pki/akmods/certs/akmods-ublue.der
echo 'Enter password "ublue-os" if prompted'

0 comments on commit 3adab49

Please sign in to comment.