Last active
January 31, 2026 17:07
-
-
Save laam-egg/b33afc6b9413a9713ebe4ac5d76ae8ba to your computer and use it in GitHub Desktop.
Install micro editor on Ubuntu - my configuration
This file contains hidden or 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
| #!/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