mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-10 00:06:59 -06:00
onchange script debug set opt, smarter micro installer
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{{ if eq .chezmoi.os "linux" -}}
|
{{ if eq .chezmoi.os "linux" -}}
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu
|
set -xeu
|
||||||
|
|
||||||
# This script is intended to be idempotent and should be safe to run multiple times.
|
# This script is intended to be idempotent and should be safe to run multiple times.
|
||||||
# No custom packages should be expected to be installed by default.
|
# No custom packages should be expected to be installed by default.
|
||||||
@@ -19,8 +19,12 @@ if ! type -P zsh; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Install micro (+ register as text editor)
|
# Install micro (+ register as text editor)
|
||||||
curl https://getmic.ro/r | sudo sh && sudo mv ./micro /usr/bin
|
if ! type -P micro; then
|
||||||
sudo apt remove -y micro
|
echo "chezmoi: Installing micro"
|
||||||
|
sudo apt remove -y micro
|
||||||
|
curl https://getmic.ro/r | sudo sh
|
||||||
|
sudo mv ./micro /usr/bin/micro
|
||||||
|
fi
|
||||||
|
|
||||||
# libpq-dev libssh-dev libsqlite3-dev
|
# libpq-dev libssh-dev libsqlite3-dev
|
||||||
echo "chezmoi: Installing apt packages"
|
echo "chezmoi: Installing apt packages"
|
||||||
|
|||||||
Reference in New Issue
Block a user