Last active
September 15, 2018 15:39
-
-
Save jpillora/c95edc521c115bd8925599be18def294 to your computer and use it in GitHub Desktop.
Revisions
-
jpillora revised this gist
Oct 7, 2016 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -19,12 +19,12 @@ URL="https://github.com/zyedidia/micro/releases/download/v${VER}/${FILE}" #download PWD=`pwd` DL=/tmp/microdl echo "downloading: $URL" && \ mkdir -p $DL && curl -L -"#" $URL | tar zxf - -C $DL && \ cd $DL/micro-${VER}/ && \ chmod +x micro && \ ((mv micro /usr/local/bin/micro > /dev/null 2>&1 && echo "installed micro to /usr/local/bin") || \ (mv micro $PWD/micro && echo "downloaded micro to $PWD")) && \ rm -rf $DL && \ mkdir -p ~/.config/micro && echo '{ "CtrlA": "StartOfLine", "CtrlE": "EndOfLine" }' > ~/.config/micro/bindings.json -
jpillora revised this gist
Oct 7, 2016 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -17,12 +17,14 @@ echo "found ${VER}" FILE="micro-${VER}-${OS}.tar.gz" URL="https://github.com/zyedidia/micro/releases/download/v${VER}/${FILE}" #download PWD=`pwd` DL=/tmp/microdl echo "downloading $URL" && \ mkdir -p $DL && curl -sL -"#" $URL | tar zxf - -C $DL && \ cd $DL/micro-${VER}/ && \ chmod +x micro && \ ((mv micro /usr/local/bin/micro > /dev/null 2>&1 && echo "installed to /usr/local/bin") || \ (mv micro $PWD/micro && echo "downloaded to $PWD")) && \ rm -rf $DL && \ mkdir -p ~/.config/micro && echo '{ "CtrlA": "StartOfLine", "CtrlE": "EndOfLine" }' > ~/.config/micro/bindings.json -
jpillora revised this gist
Oct 7, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -19,7 +19,7 @@ URL="https://github.com/zyedidia/micro/releases/download/v${VER}/${FILE}" #download DL=/tmp/microdl echo "downloading $URL" && \ mkdir -p $DL && curl -sL $URL | tar zvxf - -C $DL && \ chmod +x $DL/micro/micro && \ ((mv $DL/micro/micro /usr/local/bin/micro > /dev/null 2>&1 && echo "installed") || \ (mv $DL/micro/micro micro && echo "downloaded")) && \ -
jpillora revised this gist
Oct 7, 2016 . 1 changed file with 15 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,25 @@ #!/bin/bash #os check case `uname -s` in Darwin) OS="osx";; Linux) OS="linux64";; *) echo "unknown os: $(uname -s)" && exit 1;; esac #version check echo -n "checking latest version... " VER=`curl -sI https://github.com/zyedidia/micro/releases/latest | grep Location | sed "s~^.*tag\/v~~" | tr -d '\n' | tr -d '\r'` if [ ! "$VER" ] ; then echo "failed to find version" exit 1 fi echo "found ${VER}" #building url FILE="micro-${VER}-${OS}.tar.gz" URL="https://github.com/zyedidia/micro/releases/download/v${VER}/${FILE}" #download DL=/tmp/microdl echo "downloading $URL" && \ mkdir -p $DL && curl -sL | tar zvxf - -C $DL && \ chmod +x $DL/micro/micro && \ ((mv $DL/micro/micro /usr/local/bin/micro > /dev/null 2>&1 && echo "installed") || \ (mv $DL/micro/micro micro && echo "downloaded")) && \ -
jpillora revised this gist
Jul 15, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ case `uname -s` in Darwin) OS="osx";; Linux) OS="linux64";; *) echo "unknown os: $(uname -s)" && exit 1;; esac FILE="micro-${OS}.tar.gz" DL=/tmp/microdl -
jpillora revised this gist
Jun 22, 2016 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,10 @@ #!/bin/bash case `uname -s` in Darwin) OS="osx";; Linux) OS="linux64";; *) fail "unknown os: $(uname -s)";; esac FILE="micro-${OS}.tar.gz" DL=/tmp/microdl echo "downloading $FILE" && \ mkdir -p $DL && curl -sL "https://github.com/zyedidia/micro/releases/download/nightly/${FILE}" | tar zvxf - -C $DL && \ -
jpillora revised this gist
Jun 22, 2016 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,9 @@ #!/bin/bash OS="$(uname -s | tr '[:upper:]' '[:lower:]')" FILE="micro-${OS}64.tar.gz" DL=/tmp/microdl echo "downloading $FILE" && \ mkdir -p $DL && curl -sL "https://github.com/zyedidia/micro/releases/download/nightly/${FILE}" | tar zvxf - -C $DL && \ chmod +x $DL/micro/micro && \ ((mv $DL/micro/micro /usr/local/bin/micro > /dev/null 2>&1 && echo "installed") || \ (mv $DL/micro/micro micro && echo "downloaded")) && \ -
jpillora revised this gist
Jun 22, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ #!/bin/bash OS="$(uname -s | tr '[:upper:]' '[:lower:]')" DL=/tmp/microdl mkdir -p $DL && curl -sL https://github.com/zyedidia/micro/releases/download/nightly/micro-${OS}64.tar.gz | tar zvxf - -C $DL && \ chmod +x $DL/micro/micro && \ ((mv $DL/micro/micro /usr/local/bin/micro > /dev/null 2>&1 && echo "installed") || \ (mv $DL/micro/micro micro && echo "downloaded")) && \ -
jpillora revised this gist
Jun 22, 2016 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,4 +4,6 @@ mkdir -p $DL && curl -sL https://github.com/zyedidia/micro/releases/download/nig chmod +x $DL/micro/micro && \ ((mv $DL/micro/micro /usr/local/bin/micro > /dev/null 2>&1 && echo "installed") || \ (mv $DL/micro/micro micro && echo "downloaded")) && \ rm -rf $DL && \ mkdir -p ~/.config/micro && echo '{ "CtrlA": "StartOfLine", "CtrlE": "EndOfLine" }' > ~/.config/micro/bindings.json -
jpillora revised this gist
Jun 22, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,6 @@ DL=/tmp/microdl mkdir -p $DL && curl -sL https://github.com/zyedidia/micro/releases/download/nightly/micro-linux64.tar.gz | tar zvxf - -C $DL && \ chmod +x $DL/micro/micro && \ ((mv $DL/micro/micro /usr/local/bin/micro > /dev/null 2>&1 && echo "installed") || \ (mv $DL/micro/micro micro && echo "downloaded")) && \ rm -rf $DL -
jpillora revised this gist
Jun 22, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,5 +2,6 @@ DL=/tmp/microdl mkdir -p $DL && curl -sL https://github.com/zyedidia/micro/releases/download/nightly/micro-linux64.tar.gz | tar zvxf - -C $DL && \ chmod +x $DL/micro/micro && \ ((mv $DL/micro/micro /usr/local/bin/micro > /dev/null 2&>1 && echo "installed") || \ (mv $DL/micro/micro micro && echo "downloaded")) && \ rm -rf $DL -
jpillora revised this gist
Jun 22, 2016 . 1 changed file with 5 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,6 @@ #!/bin/bash DL=/tmp/microdl mkdir -p $DL && curl -sL https://github.com/zyedidia/micro/releases/download/nightly/micro-linux64.tar.gz | tar zvxf - -C $DL && \ chmod +x $DL/micro/micro && \ (mv $DL/micro/micro /usr/local/bin/micro > /dev/null 2&>1 echo "installed" || mv $DL/micro/micro micro echo "downloaded") && \ rm -rf $DL -
jpillora revised this gist
Jun 22, 2016 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,8 @@ #!/bin/bash curl -sL https://github.com/zyedidia/micro/releases/download/nightly/micro-linux64.tar.gz | tar zvxf - -C /tmp && \ chmod +x /tmp/micro/micro && \ (mv /tmp/micro/micro /usr/local/bin/micro > /dev/null 2&>1 || mv /tmp/micro/micro micro) && \ echo "installed" # rm -rf /tmp/micro && \ -
jpillora created this gist
Jun 22, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ #!/bin/bash curl -L https://github.com/zyedidia/micro/releases/download/nightly/micro-linux64.tar.gz | tar zxf - -C /tmp && chmod +x /tmp/micro/micro && (mv /tmp/micro/micro /usr/local/bin/micro > /dev/null 2&>1 || mv /tmp/micro/micro micro) && rm -rf /tmp/micro && echo "installed"