Last active
June 6, 2024 22:22
-
-
Save FlawlessCasual17/780d7a555e8cae2f0b879d4e9fa3f051 to your computer and use it in GitHub Desktop.
My shell scripts for configuring a new podman machine instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
fi | |
brew install fzf micro fd oh-my-posh topgrade ripgrep fish | |
sudo ln -s $(which fish) /bin/fish | |
sudo ln -s $(which fzf) /bin/fzf | |
sudo ln -s $(which fd) /bin/fd | |
sudo ln -s $(which micro) /bin/micro | |
sudo ln -s $(which rg) /bin/rg | |
# Part 3 | |
sh <(curl -L https://nixos.org/nix/install) --daemon | |
exec bash | |
nix-env -i wslu | |
# Part 4 | |
echo "/bin/fish" | sudo tee -a /etc/shells | |
echo "/usr/bin/fish" | sudo tee -a /etc/shells | |
sudo chsh user --shell /bin/fish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
# Part 1 | |
curl -sL 'https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish' | source && fisher install jorgebucaran/fisher | |
# Part 2 | |
fisher install jorgebucaran/replay.fish | |
fisher install catppuccin/fish | |
fisher install kidonng/nix.fish | |
fisher install kidonng/nix-completions.fish | |
# Part 3 | |
curl 'https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install' | fish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment