Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add descriptions to just commands #404

Merged
merged 1 commit into from
Aug 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions usr/share/ublue-os/just/custom.just
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Run a one minute system benchmark
benchmark:
echo 'Running a 1 minute benchmark ...'
stress-ng --matrix 0 -t 1m --times

# Assemble distrobox containers
assemble:
echo 'Assembling and replacing distroboxes ...'
distrobox assemble create --replace --file /etc/distrobox/distrobox.ini
Expand Down Expand Up @@ -46,7 +48,7 @@ brew-shell:
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> $HOME/.bash_profile
fi


# Enable Cockpit for web-based system management | https://cockpit-project.org/
cockpit:
echo 'Enabling Cockpit'
echo 'PasswordAuthentication yes' | sudo tee /etc/ssh/sshd_config.d/02-enable-passwords.conf
Expand All @@ -56,10 +58,11 @@ cockpit:
sudo podman container runlabel INSTALL quay.io/cockpit/ws
sudo systemctl enable cockpit.service

# Import a devcontainers profile for VSCode
code-profile:
xdg-open https://vscode.dev/profile/github/c761b7738e9a7b02286d6d94cb2d1ecd

# Rebase to a non developer bluefin image
# Rebase to a stock Bluefin image
devmode-off:
#!/usr/bin/env bash
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"')
Expand All @@ -72,7 +75,7 @@ devmode-off:
echo "You are currently not on a developer image"
fi

# Rebase to a developer bluefin image
# Rebase to the Bluefin Developer Experience image
devmode-on:
#!/usr/bin/env bash
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"')
Expand All @@ -85,24 +88,30 @@ devmode-on:
rpm-ostree rebase $NEW_IMAGE
fi

# Assemble a Pytorch distrobox (Nvidia only)
distrobox-mlbox:
echo 'Assembling pytorch-nvidia mlbox distrobox ...'
distrobox assemble create --file /usr/share/ublue-os/distrobox/pytorch-nvidia.ini

# Create a Wolfi OS container | https://github.com/wolfi-dev
distrobox-wolfi:
echo 'Creating WolfiOS distrobox ...'
distrobox create --image ghcr.io/ublue-os/wolfi-toolbox:latest -n wolfi

# Create a universal developer container
distrobox-universal:
echo 'Creating Universal Development distrobox ...'
distrobox create --image mcr.microsoft.com/devcontainers/universal:latest -n universal -Y

# Add boot parameters needed for a Framework 13 laptop
framework-13:
rpm-ostree kargs --append="module_blacklist=hid_sensor_hub" --append="nvme.noacpi=1" --append="tpm_tis.interrupts=0"

# Switch to the fish shell
fish:
sudo lchsh -s /usr/bin/fish $USER

# Install recommended GNOME extensions
gnome-extensions:
pip install --upgrade gnome-extensions-cli
gext install [email protected]
Expand All @@ -122,35 +131,37 @@ jetbrains-toolbox:
echo "Launching JetBrains Toolbox"
./jetbrains-toolbox-$BUILD_VERSION/jetbrains-toolbox

# Install nix and Devbox
nix-devbox:
echo 'Setting phasers to kill. Installing nix.'
curl -s https://raw.githubusercontent.com/dnkmmr69420/nix-installer-scripts/main/installer-scripts/silverblue-nix-installer.sh | bash
echo 'Installing devbox!'
curl -fsSL https://get.jetpack.io/devbox | bash
echo 'You MUST reboot to continue'

# Install nix and Devbox (Global Profile)
nix-devbox-global:
echo 'Installing devbox global profile.'
devbox global pull https://devbox.getfleek.dev/high
echo 'run "devbox global run install-bash-hook" to configure bash shell'
echo 'run "devbox global run install-zsh-hook" to configure zsh shell'
echo 'run "devbox global run" to see other available configuration commands'

tea:
bobslept marked this conversation as resolved.
Show resolved Hide resolved
echo 'Installing the tea package manager'
sh <(curl https://tea.xyz)

# Install better touch-friendly GNOME extensions
touch:
pip install --upgrade gnome-extensions-cli
gext install [email protected]
gext install gestureImprovements@gestures

# Upgrade Distrobox to the latest git version
update-distrobox-git:
echo 'Installing latest git snapshot of Distrobox'
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sh -s -- --next --prefix ~/.local

# Run the yafti setup tool
yafti:
yafti /etc/yafti.yml

# Switch to the zsh shell
zsh:
sudo lchsh -s /usr/bin/zsh $USER