Last active
July 8, 2023 01:13
-
-
Save pbsds/1b8912cbf37557bf6888abd79b90a73c to your computer and use it in GitHub Desktop.
Install sane Micro
This file contains 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 | |
if ! command -v micro >/dev/null; then | |
if test -s ~/.local/bin/micro; then | |
echo "micro is instaled, but not in PATH, concider loggin out and in" | |
exit 1 | |
fi | |
cd ~ | |
mkdir -p .local/bin | |
cd .local/bin | |
curl https://getmic.ro | bash | |
fi | |
echo | |
echo installing micro config... | |
echo | |
cd ~ | |
mkdir -p .config/micro | |
cd .config/micro | |
curl "https://raw.githubusercontent.com/pbsds/dotfiles/master/config/micro/bindings.json" > bindings.json | |
curl "https://raw.githubusercontent.com/pbsds/dotfiles/master/config/micro/settings.json" > settings.json | |
# TODO: plugins | |
echo | |
which xclip > /dev/null || echo "You ought to install xclip..." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment