Forked from simonewebdesign/install_sublime_text.sh
Created
January 22, 2017 23:56
-
-
Save lucaslz/3d9deb1a1f4671094e151ae34819c0f7 to your computer and use it in GitHub Desktop.
Revisions
-
simonewebdesign revised this gist
Sep 24, 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 @@ -8,7 +8,7 @@ # Detect the architecture if [[ "$(uname -m)" = "x86_64" ]]; then ARCHITECTURE="x64" else ARCHITECTURE="x32" -
simonewebdesign revised this gist
Sep 24, 2016 . 1 changed file with 1 addition and 5 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,12 +1,10 @@ #!/bin/sh # Sublime Text 3 install with Package Control (last update: 25 September 2016) # # No need to download this script, just run it on your terminal: # # $ curl -L git.io/sublimetext | sh # Detect the architecture @@ -26,8 +24,6 @@ INSTALLATION_DIR="/opt/sublime_text" # Download the tarball, unpack and install curl -o $HOME/st3.tar.bz2 $URL if tar -xf $HOME/st3.tar.bz2 --directory=$HOME; then sudo mv $HOME/sublime_text_3 $INSTALLATION_DIR sudo ln -s $INSTALLATION_DIR/sublime_text /bin/subl fi -
simonewebdesign revised this gist
Aug 25, 2016 . 1 changed file with 5 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 @@ -1,6 +1,6 @@ #!/bin/sh # Sublime Text 3 install with Package Control (last update: 25 August 2016) # # No need to download this script, just run it on your terminal: # @@ -45,6 +45,7 @@ sudo ln -s $INSTALLATION_DIR/sublime_text.desktop /usr/share/applications/sublim # Set the icon (thanks gcaracuel) sudo sed -i.bak 's/Icon=sublime-text/Icon=\/opt\/sublime_text\/Icon\/128x128\/sublime-text.png/g' /usr/share/applications/sublime_text.desktop echo ' Sublime Text 3 installed successfully! Run with: subl ' -
simonewebdesign revised this gist
Jul 30, 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 @@ -1,6 +1,6 @@ #!/bin/sh # Sublime Text 3 install with Package Control (last update: 30 July 2016) # # No need to download this script, just run it on your terminal: # -
simonewebdesign revised this gist
Jul 30, 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 @@ -45,6 +45,6 @@ sudo ln -s $INSTALLATION_DIR/sublime_text.desktop /usr/share/applications/sublim # Set the icon (thanks gcaracuel) sudo sed -i.bak 's/Icon=sublime-text/Icon=\/opt\/sublime_text\/Icon\/128x128\/sublime-text.png/g' /usr/share/applications/sublime_text.desktop echo echo "Sublime Text 3 installed successfully!" echo "Run with: subl" -
simonewebdesign revised this gist
May 17, 2016 . 1 changed file with 3 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,6 +1,6 @@ #!/bin/sh # Sublime Text 3 install with Package Control (last update: 18 May 2016) # # No need to download this script, just run it on your terminal: # @@ -34,8 +34,8 @@ fi rm $HOME/st3.tar.bz2 # Package Control - The Sublime Text Package Manager: https://packagecontrol.io curl -o $HOME/Package\ Control.sublime-package https://packagecontrol.io/Package%20Control.sublime-package sudo mv $HOME/Package\ Control.sublime-package "$INSTALLATION_DIR/Installed Packages/" -
simonewebdesign revised this gist
Mar 3, 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 @@ -1,6 +1,6 @@ #!/bin/sh # Sublime Text 3 install with Package Control (last update: 3 March 2016) # # No need to download this script, just run it on your terminal: # -
simonewebdesign revised this gist
Mar 3, 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 @@ -36,7 +36,7 @@ rm $HOME/st3.tar.bz2 # Package Control - The Sublime Text Package Manager: https://sublime.wbond.net curl -o $HOME/Package\ Control.sublime-package https://sublime.wbond.net/Package%20Control.sublime-package sudo mv $HOME/Package\ Control.sublime-package "$INSTALLATION_DIR/Installed Packages/" # Add to applications list (thanks 4ndrej) -
simonewebdesign revised this gist
Feb 9, 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 @@ -1,6 +1,6 @@ #!/bin/sh # Sublime Text 3 install with Package Control (last update: 9 Feb 2016) # # No need to download this script, just run it on your terminal: # -
simonewebdesign revised this gist
Feb 9, 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 @@ fi # Fetch the latest build version number (thanks daveol) BUILD=$(echo $(curl http://www.sublimetext.com/3) | sed -rn "s#.*The latest build is ([0-9]+)..*#\1#p") URL="https://download.sublimetext.com/sublime_text_3_build_{$BUILD}_{$ARCHITECTURE}.tar.bz2" INSTALLATION_DIR="/opt/sublime_text" -
simonewebdesign revised this gist
Jul 12, 2015 . 1 changed file with 5 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,6 @@ #!/bin/sh # Sublime Text 3 install with Package Control (last update: 12 July 2015) # # No need to download this script, just run it on your terminal: # @@ -42,6 +42,9 @@ sudo mv $HOME/Package\ Control.sublime-package "$INSTALLATION_DIR/Packages/" # Add to applications list (thanks 4ndrej) sudo ln -s $INSTALLATION_DIR/sublime_text.desktop /usr/share/applications/sublime_text.desktop # Set the icon (thanks gcaracuel) sudo sed -i.bak 's/Icon=sublime-text/Icon=\/opt\/sublime_text\/Icon\/128x128\/sublime-text.png/g' /usr/share/applications/sublime_text.desktop echo "" echo "Sublime Text 3 installed successfully!" echo "Run with: subl" -
simonewebdesign revised this gist
Apr 4, 2015 . 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 @@ fi # Fetch the latest build version number (thanks daveol) BUILD=$(echo $(curl http://www.sublimetext.com/3) | sed -rn "s#.*The latest build is ([0-9]+)..*#\1#p") URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_{$BUILD}_{$ARCHITECTURE}.tar.bz2" INSTALLATION_DIR="/opt/sublime_text" -
simonewebdesign revised this gist
Apr 4, 2015 . 1 changed file with 2 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 @@ -2,11 +2,11 @@ # Sublime Text 3 install with Package Control (last update: 4 April 2015) # # No need to download this script, just run it on your terminal: # # $ curl -L git.io/sublimetext | sh # # When you need to update Sublime Text, run this script again. # Detect the architecture -
simonewebdesign revised this gist
Apr 4, 2015 . 1 changed file with 11 additions and 5 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,10 +1,12 @@ #!/bin/sh # Sublime Text 3 install with Package Control (last update: 4 April 2015) # # No need to download this script, just run it: # # $ curl -L git.io/sublimetext | sh # # If you need to update Sublime Text, run this script again. # Detect the architecture @@ -14,10 +16,14 @@ else ARCHITECTURE="x32" fi # Fetch the latest build version number (thanks daveol) BUILD=$(echo $(curl http://www.sublimetext.com/3) | sed -rn "s#.*The latest build is ([0-9]+)..*#\1#p") URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_$BUILD_$ARCHITECTURE.tar.bz2" INSTALLATION_DIR="/opt/sublime_text" # Download the tarball, unpack and install curl -o $HOME/st3.tar.bz2 $URL if tar -xf $HOME/st3.tar.bz2 --directory=$HOME; then # Remove the installation folder and the symlink, they might already exist -
simonewebdesign revised this gist
Mar 27, 2015 . 1 changed file with 2 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,6 @@ #!/bin/sh # Sublime Text 3 install with Package Control (last update: 27 March 2015) # # Run this script with: # @@ -15,7 +15,7 @@ else fi # Download the tarball, unpack and install URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3083_$ARCHITECTURE.tar.bz2" INSTALLATION_DIR="/opt/sublime_text" curl -o $HOME/st3.tar.bz2 $URL -
simonewebdesign revised this gist
Mar 24, 2015 . 1 changed file with 2 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 @@ -1,8 +1,6 @@ #!/bin/sh # Sublime Text 3 install with Package Control (last update: 24 March 2015) # # Run this script with: # @@ -17,7 +15,7 @@ else fi # Download the tarball, unpack and install URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3080_$ARCHITECTURE.tar.bz2" INSTALLATION_DIR="/opt/sublime_text" curl -o $HOME/st3.tar.bz2 $URL -
simonewebdesign revised this gist
Jan 28, 2015 . 1 changed file with 2 additions and 0 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 @@ -22,6 +22,8 @@ INSTALLATION_DIR="/opt/sublime_text" curl -o $HOME/st3.tar.bz2 $URL if tar -xf $HOME/st3.tar.bz2 --directory=$HOME; then # Remove the installation folder and the symlink, they might already exist sudo rm -rf $INSTALLATION_DIR /bin/subl sudo mv $HOME/sublime_text_3 $INSTALLATION_DIR sudo ln -s $INSTALLATION_DIR/sublime_text /bin/subl fi -
simonewebdesign revised this gist
Jan 28, 2015 . 1 changed file with 1 addition 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 @@ -10,8 +10,7 @@ # Detect the architecture if [ "$(uname -m)" = "x86_64" ]; then ARCHITECTURE="x64" else ARCHITECTURE="x32" -
simonewebdesign revised this gist
Oct 28, 2014 . 1 changed file with 11 additions and 9 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,6 @@ #!/bin/sh # Sublime Text 3 install with Package Control # # www.simonewebdesign.it/install-sublime-text-3-on-linux/ # @@ -12,28 +12,30 @@ # Detect the architecture UNAME=$(uname -m) if [ "$UNAME" = 'x86_64' ]; then ARCHITECTURE="x64" else ARCHITECTURE="x32" fi # Download the tarball, unpack and install URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_$ARCHITECTURE.tar.bz2" INSTALLATION_DIR="/opt/sublime_text" curl -o $HOME/st3.tar.bz2 $URL if tar -xf $HOME/st3.tar.bz2 --directory=$HOME; then sudo mv $HOME/sublime_text_3 $INSTALLATION_DIR sudo ln -s $INSTALLATION_DIR/sublime_text /bin/subl fi rm $HOME/st3.tar.bz2 # Package Control - The Sublime Text Package Manager: https://sublime.wbond.net curl -o $HOME/Package\ Control.sublime-package https://sublime.wbond.net/Package%20Control.sublime-package sudo mv $HOME/Package\ Control.sublime-package "$INSTALLATION_DIR/Packages/" # Add to applications list (thanks 4ndrej) sudo ln -s $INSTALLATION_DIR/sublime_text.desktop /usr/share/applications/sublime_text.desktop echo "" echo "Sublime Text 3 installed successfully!" -
simonewebdesign revised this gist
Oct 28, 2014 . 1 changed file with 21 additions and 29 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,47 +1,39 @@ #!/bin/sh # Sublime Text 3 installation with Package Control # # www.simonewebdesign.it/install-sublime-text-3-on-linux/ # # Run this script with: # # curl -L git.io/sublimetext | sh # Detect the architecture UNAME=$(uname -m) if [ "$UNAME" = 'x86_64' ]; then ARC="x64" else ARC="x32" fi URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_$ARC.tar.bz2" # Download the tarball, unpack and install curl -o $HOME/st3.tar.bz2 $URL if tar -xf $HOME/st3.tar.bz2 --directory=$HOME; then sudo mv $HOME/sublime_text/ /opt/ sudo ln -s /opt/sublime_text/sublime_text /bin/subl fi rm $HOME/st3.tar.bz2 # Package Control - The Sublime Text Package Manager: https://sublime.wbond.net curl -o $HOME/Package\ Control.sublime-package https://sublime.wbond.net/Package%20Control.sublime-package sudo mv $HOME/Package\ Control.sublime-package /opt/sublime_text/Packages/ # Add to applications list (thanks 4ndrej) sudo ln -s /opt/sublime_text/sublime_text.desktop /usr/share/applications/sublime_text.desktop echo "" echo "Sublime Text 3 installed successfully!" -
simonewebdesign revised this gist
Sep 5, 2014 . 1 changed file with 3 additions and 0 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 @@ -7,12 +7,15 @@ # $ curl -L git.io/sublimetext | sh # Detect the architecture if [ `uname -m` = 'x86_64' ]; then URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x64.tar.bz2" else URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x32.tar.bz2" fi # Download the tarball, unpack and install curl -o ~/st3.tar.bz2 $URL if tar -xf ~/st3.tar.bz2 --directory=$HOME; then sudo mv ~/sublime_text_3/ /opt/ -
simonewebdesign revised this gist
Sep 1, 2014 . 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 @@ -1,7 +1,7 @@ #!/bin/sh # Sublime Text 3 install with Package Control # http://simonewebdesign.it/install-sublime-text-3-on-linux/ # Run this script with: # $ curl -L git.io/sublimetext | sh -
simonewebdesign revised this gist
Sep 1, 2014 . 1 changed file with 2 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,4 +1,4 @@ #!/bin/sh # Sublime Text 3 install with Package Control # http://simonewebdesign.it/blog/install-sublime-text-3-on-fedora-20/ @@ -7,7 +7,7 @@ # $ curl -L git.io/sublimetext | sh if [ `uname -m` = 'x86_64' ]; then URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x64.tar.bz2" else URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x32.tar.bz2" -
simonewebdesign revised this gist
Sep 1, 2014 . 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 @@ -7,7 +7,7 @@ # $ curl -L git.io/sublimetext | sh if [ "`uname -m`" == 'x86_64' ]; then URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x64.tar.bz2" else URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x32.tar.bz2" -
simonewebdesign revised this gist
Sep 1, 2014 . 1 changed file with 1 addition and 0 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 @@ -27,6 +27,7 @@ sudo mv ~/Package\ Control.sublime-package /opt/sublime_text_3/Packages/ # Add to applications list mkdir -p ~/.local/share/applications cat << EOF > ~/.local/share/applications/sublime.desktop [Desktop Entry] Name=Sublime Text -
simonewebdesign revised this gist
Sep 1, 2014 . 1 changed file with 2 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 @@ -8,9 +8,9 @@ if [ `uname -m` == 'x86_64' ]; then URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x64.tar.bz2" else URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x32.tar.bz2" fi curl -o ~/st3.tar.bz2 $URL -
simonewebdesign revised this gist
Sep 1, 2014 . 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 @@ -7,7 +7,7 @@ # $ curl -L git.io/sublimetext | sh if [ `uname -m` == 'x86_64' ]; then $URL = "http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x64.tar.bz2" else $URL = "http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x32.tar.bz2" -
simonewebdesign revised this gist
Sep 1, 2014 . 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 @@ -7,7 +7,7 @@ # $ curl -L git.io/sublimetext | sh if "`uname -m`" == "x86_64"; then $URL = "http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x64.tar.bz2" else $URL = "http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x32.tar.bz2" -
simonewebdesign revised this gist
Sep 1, 2014 . 1 changed file with 9 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,19 @@ #!/usr/bin/env bash # Sublime Text 3 install with Package Control # http://simonewebdesign.it/blog/install-sublime-text-3-on-fedora-20/ # Run this script with: # $ curl -L git.io/sublimetext | sh if `uname -m` == 'x86_64'; then $URL = "http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x64.tar.bz2" else $URL = "http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3065_x32.tar.bz2" fi curl -o ~/st3.tar.bz2 $URL if tar -xf ~/st3.tar.bz2 --directory=$HOME; then sudo mv ~/sublime_text_3/ /opt/ sudo ln -s /opt/sublime_text_3/sublime_text /bin/subl -
simonewebdesign revised this gist
Feb 23, 2014 . 1 changed file with 10 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 @@ -21,7 +21,16 @@ sudo mv ~/Package\ Control.sublime-package /opt/sublime_text_3/Packages/ # Add to applications list cat << EOF > ~/.local/share/applications/sublime.desktop [Desktop Entry] Name=Sublime Text Exec=subl %F MimeType=text/plain; Terminal=false Type=Application Icon=/opt/sublime_text_3/Icon/128x128/sublime-text.png Categories=Utility;TextEditor;Development; EOF echo ""
NewerOlder