From 8a3780c695196537eb11a12cd8323e4592fed18b Mon Sep 17 00:00:00 2001 From: Camille Scholtz Date: Sun, 22 May 2016 00:25:49 +0200 Subject: [PATCH 1/2] Add Arch and CRUX installation guides --- README.md | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1a5e6310..abb19dd8 100644 --- a/README.md +++ b/README.md @@ -34,16 +34,37 @@ Here is a picture of micro editing its source code. # Installation -### Homebrew +Micro is devel-only for now because there is no released version. -If you are on Mac, you can install micro using Homebrew: +### OSX -``` +If you are on OSX, you can install micro using Homebrew: + +```sh brew tap zyedidia/micro brew install --devel micro ``` -Micro is devel-only for now because there is no released version. +### Arch Linux + +If you are on Arch Linux, you can install micro using the AUR: + +```sh +wget https://aur.archlinux.org/cgit/aur.git/snapshot/micro-git.tar.gz +cd micro-git +makepkg -si +``` + +### CRUX + +If you are on CRUX, you can install micro using the 6c37-git repo: + +```sh +git clone https://github.com/6c37/crux-ports-git +cd crux-ports-git/micro +# make sure you have go installed! +pkgmk -i +``` ### Prebuilt binaries @@ -71,7 +92,7 @@ Make sure that you have Go version 1.4 or greater. You can simply `go get` it. -``` +```sh go get -u github.com/zyedidia/micro/cmd/micro ``` @@ -79,7 +100,7 @@ go get -u github.com/zyedidia/micro/cmd/micro On Linux, clipboard support requires 'xclip' or 'xsel' command to be installed. For Ubuntu: -``` +```sh $ sudo apt-get install xclip ``` @@ -91,8 +112,8 @@ Once you have built the editor, simply start it by running `micro path/to/file.t Micro also supports creating buffers from `stdin`: -``` -$ ifconfig | micro +```sh +ifconfig | micro ``` You can move the cursor around with the arrow keys and mouse. From e13b856773de971391cc4bf3e6080e85fc27f0ae Mon Sep 17 00:00:00 2001 From: Camille Scholtz Date: Sun, 22 May 2016 00:28:29 +0200 Subject: [PATCH 2/2] Remove dollar sign --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index abb19dd8..493936e7 100644 --- a/README.md +++ b/README.md @@ -98,10 +98,12 @@ go get -u github.com/zyedidia/micro/cmd/micro ### Clipboard support -On Linux, clipboard support requires 'xclip' or 'xsel' command to be installed. For Ubuntu: +On Linux, clipboard support requires 'xclip' or 'xsel' command to be installed. + +For Ubuntu: ```sh -$ sudo apt-get install xclip +sudo apt-get install xclip ``` If you don't have xclip or xsel, micro will use an internal clipboard for copy and paste, but it won't work with external applications.