mg

A small, fast, and portable text editor based on emacs. More information: <https://github.com/hboetes/mg>.

Install

All systems
curl cmd.cat/mg.sh
Debian Debian
apt-get install mg
Ubuntu
apt-get install mg
Alpine
apk add mg
Arch Arch Linux
pacman -S mg
image/svg+xml Kali Linux
apt-get install mg
Fedora
dnf install mg
Windows (WSL2)
sudo apt-get update sudo apt-get install mg
OS X
brew install mg
Raspbian
apt-get install mg
Docker
docker run cmd.cat/mg mg powered by Commando

A small, fast, and portable text editor based on emacs. More information: <https://github.com/hboetes/mg>.

  • Open a file for editing:
    mg path/to/file
  • Open a file at a specified line number:
    mg +line_number path/to/file
  • Open files in a read-only mode:
    mg -R path/to/file1 path/to/file2 ...
  • Disable `~` backup files while editing:
    mg -n path/to/file

© tl;dr; authors and contributors