Skip to content

Instantly share code, notes, and snippets.

@pbsds
Last active July 8, 2023 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbsds/1b8912cbf37557bf6888abd79b90a73c to your computer and use it in GitHub Desktop.
Save pbsds/1b8912cbf37557bf6888abd79b90a73c to your computer and use it in GitHub Desktop.
Install sane Micro
#!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