Skip to content

Instantly share code, notes, and snippets.

@laam-egg
Last active January 31, 2026 17:07
Show Gist options
  • Select an option

  • Save laam-egg/b33afc6b9413a9713ebe4ac5d76ae8ba to your computer and use it in GitHub Desktop.

Select an option

Save laam-egg/b33afc6b9413a9713ebe4ac5d76ae8ba to your computer and use it in GitHub Desktop.
Install micro editor on Ubuntu - my configuration
#!/bin/sh
set -e
# Install micro
curl -fsSL https://getmic.ro | bash
sudo mv ./micro /usr/local/bin/edit
# Config directories
install -d ~/.config/micro
sudo install -d /root/.config/micro
# Settings
MICRO_SETTINGS='{
"colorscheme": "bubblegum",
"tabstospaces": true,
"tabsize": 4
}'
echo "$MICRO_SETTINGS" | tee ~/.config/micro/settings.json \
| sudo tee /root/.config/micro/settings.json > /dev/null
# Key bindings
MICRO_EDITOR_BINDINGS='{
"Alt-/": "lua:comment.comment",
"CtrlUnderscore": "lua:comment.comment",
"Ctrl-q": "",
"Ctrl-w": "Quit",
"CtrlDelete": "DeleteWordRight",
"OldBackspace": "DeleteWordLeft"
}'
echo "$MICRO_EDITOR_BINDINGS" | tee ~/.config/micro/bindings.json \
| sudo tee /root/.config/micro/bindings.json > /dev/null
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment