Using cli install will force reinstall the installers that are otherwise guarded
This commit is contained in:
parent
6e6a32ca03
commit
f39c367fd7
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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}
|
||||
|
||||
|
@ -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']"
|
||||
|
@ -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
|
||||
|
@ -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 &&
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user