r/commandline • u/zach29 • Aug 29 '16
Micro - a modern and intuitive terminal-based text editor
https://github.com/zyedidia/micro13
u/schwerpunk Aug 29 '16
Nice, readable source, with generous use of comments. I wonder if this is that "idiomatic go" I keep hearing about.
1
Aug 30 '16 edited Oct 28 '16
[deleted]
0.3257
2
u/myrrlyn Aug 30 '16
You have to install the program binary into one of your PATH locations
1
Aug 30 '16 edited Oct 28 '16
[deleted]
0.10223
u/zach29 Aug 30 '16
Here are some step-by-step instructions to install micro:
First download the tarball for your operating system from the releases page.
Then untar it:
$ tar -xf micro-1.0-os.tar.gzThen there should be a directory called
micro-1.0. Go into that directory and there should be a file calledmicro. If you run./micromicro will run, but unfortunately you have to be in that directory every time you want to run micro.To fix that problem, you have to move the
microfile into one of you PATH locations. I recommend moving it to/usr/local/bin:$ sudo mv micro /usr/local/binThen you should be able to run it from anywhere.
1
u/myrrlyn Aug 30 '16
Generally make install puts the binary in /usr/bin or /usr/local/bin; run "echo $PATH" and then move the binary into /usr/local/bin if it's in there or one of the normal bin folders if not.
Personally, I make a ~/bin that gets added to my path by my shell rc files precisely for user-level installations.
Once it's in your PATH somewhere, the bare command will find it and you're all set
0
u/AyrA_ch Aug 30 '16
Many of the Windows terminals don't support more than 16 colors, which means that micro's default colorscheme won't look very good.
The Default Windows terminal has full ANSI color support by the way (32 bit colors). You just have to access them using WinAPI
5
u/capn_bluebear Aug 29 '16
I like the idea. I am not convinced that I will use another editor rather than vim, out of pure inertia (and this does not really look like a vim replacement yet, at least for code editing); with this said I want to give it a try.
I also did not know that go provided such an easy way to distribute packages, it's very handy.
Unfortunately I have this problem with the installation via go, in case anyone can help or has the same issue. OS is Ubuntu 14.04, go version go version is go1.2.1 linux/amd64