Showing posts with label flatland. Show all posts
Showing posts with label flatland. Show all posts

Friday, September 8, 2017

Sublime Flatland Installation Script For Ubuntu

Sublime Flatland Installation Script For Ubuntu


Flatland is my favourite theme for Sublime, and everything I do has to be automated as much as possible, so I made an installation script

Script

Execute the following command:

curl -s http://scripts.programster.org/scripts/6/1?output=raw | bash

... or run the following script with bash:


#!/bin/bash
mkdir /tmp/install-sublime-theme
cd /tmp/install-sublime-theme

wget https://github.com/thinkpixellab/flatland/archive/master.zip

unzip master.zip

mv flatland-master "/home/$USER/.config/sublime-text-3/Packages/Theme - Flatland"

# clean up
/tmp/install-sublime-theme

# One day I may get bash to check for and overwrite these attributes
# but for now just tell the user what to do manually.
echo ""
echo "======================= copy lines below ===================="
echo "theme": "Flatland Dark.sublime-theme",
echo "color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme"
echo "============================================================="
echo "Now update the settings file using the command below and add/overwrite the following two properties"
echo subl /home/$USER/.config/sublime-text-3/Packages/User/Preferences.sublime-settings

References

  • Flatland Github Repo

download file now

Read more »