Using cli install will force reinstall the installers that are otherwise guarded

This commit is contained in:
David Heinemeier Hansson 2024-06-03 16:25:43 -07:00
parent 6e6a32ca03
commit f39c367fd7
15 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
INSTALLER=$(gum file $OMAKUB_PATH/install)
[ -n "$INSTALLER" ] && gum confirm "Run installer?" && source $INSTALLER
[ -n "$INSTALLER" ] && gum confirm "Run installer?" && FORCE=1 source $INSTALLER

View File

@ -1,4 +1,4 @@
if ! command -v alacritty &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v alacritty &>/dev/null; then
sudo apt install -y alacritty
mkdir -p ~/.config/alacritty
cp $OMAKUB_PATH/configs/alacritty.toml ~/.config/alacritty/alacritty.toml

View File

@ -1,4 +1,4 @@
if ! command -v google-chrome &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v google-chrome &>/dev/null; then
cd ~/Downloads
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

View File

@ -1,4 +1,4 @@
if ! command -v docker &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v docker &>/dev/null; then
sudo apt install -y docker.io docker-buildx
sudo usermod -aG docker ${USER}

View File

@ -1,4 +1,4 @@
if [ ! -f "~/.XCompose" ]; then
if [ -n "$FORCE" ] || [ ! -f "~/.XCompose" ]; then
cp $OMAKUB_PATH/configs/xcompose ~/.XCompose
ibus restart
gsettings set org.gnome.desktop.input-sources xkb-options "['compose:caps']"

View File

@ -1,4 +1,4 @@
# Flameshot is a nice step-up over the default Gnome screenshot tool
if ! command -v flameshot &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v flameshot &>/dev/null; then
sudo apt install -y flameshot
fi

View File

@ -1,4 +1,4 @@
if ! command -v gh &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v gh &>/dev/null; then
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg &&
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg &&
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list >/dev/null &&

View File

@ -1,4 +1,4 @@
if ! command -v gnome-shell-extension-manager &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v gnome-shell-extension-manager &>/dev/null; then
sudo apt install -y gnome-shell-extension-manager pipx
pipx install gnome-extensions-cli --system-site-packages

View File

@ -1,4 +1,4 @@
if ! command -v neovim &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v neovim &>/dev/null; then
sudo add-apt-repository -y ppa:neovim-ppa/stable
sudo apt update -y
sudo apt install -y neovim

View File

@ -1,4 +1,4 @@
if ! command -v nodenv &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v nodenv &>/dev/null; then
# FIXME: Make this pick whatever the latest LTS is
DEFAULT_NODE_VERSION="20.13.1"

View File

@ -1,4 +1,4 @@
if ! command -v rbenv &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v rbenv &>/dev/null; then
# FIXME: Change to use whatever latest release is
DEFAULT_RUBY_VERSION="3.3.1"

View File

@ -1,4 +1,4 @@
if ! command -v typora &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v typora &>/dev/null; then
sudo snap install typora
cd ~/Downloads
git clone https://github.com/dhh/ia_typora

View File

@ -1,4 +1,4 @@
if ! command -v ulauncher &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v ulauncher &>/dev/null; then
sudo add-apt-repository universe -y
sudo add-apt-repository ppa:agornostal/ulauncher -y
sudo apt update -y

View File

@ -1,4 +1,4 @@
if ! command -v code &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v code &>/dev/null; then
sudo snap install code --classic
mkdir -p ~/.config/Code/User
cp $OMAKUB_PATH/configs/vscode.json ~/.config/Code/User/settings.json

View File

@ -1,4 +1,4 @@
if ! command -v zellij &>/dev/null; then
if [ -n "$FORCE" ] || ! command -v zellij &>/dev/null; then
sudo snap install zellij --classic
mkdir -p ~/.config/zellij/
cp $OMAKUB_PATH/configs/zellij.kdl ~/.config/zellij/config.kdl