Skip to content

Instantly share code, notes, and snippets.

View FlawlessCasual17's full-sized avatar
💭
I may be slow to respond.

Kris FlawlessCasual17

💭
I may be slow to respond.
  • Alberta, Canada
View GitHub Profile
@FlawlessCasual17
FlawlessCasual17 / nix-profile-install
Last active February 13, 2025 20:01
Wrappers for `nix profile install` for non-NixOS KDE Plasma Linux/Unix distributions.
#!/usr/bin/env bash
# # Do sudo first
# sudo -v
# # Check if the user has sudo privellages
# sudo -n true
# sudo_status=$?
# if [ $sudo_status -ne 0 ]; then
# echo 'Root-like/Sudo access is required.'
@FlawlessCasual17
FlawlessCasual17 / podman_configuration_bash
Last active June 6, 2024 22:22
My shell scripts for configuring a new podman machine instance
#!/usr/bin/env bash
sudo --validate
# Part 1
sudo dnf update -y
sudo dnf groupinstall -y 'Development Tools'
sudo dnf install -y procps-ng curl file git lsd
# Part 2
if [ ! -d /home/linuxbrew ]; then
@3v1n0
3v1n0 / fish-shell-bash-complete-function.sh
Last active April 3, 2025 16:37
Use bash completions in Fish Shell
#!/usr/bin/fish
# You can add this to your ~/.config/fish/config.fish
function __fish_complete_bash
set cmd (commandline -cp)
bash -c "source get-bash-completions.sh; get_completions '$cmd'"
end
# Set the tool to use bash completions