Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Linux install script (can easily be modified for other OS) #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions linux-install-script/headers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IDE:
editor:
themes:
8 changes: 8 additions & 0 deletions linux-install-script/installThemes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

cp ~/.config/SuperCollider/sc_ide_conf.yaml ~/.config/SuperCollider/sc_ide_conf.yaml.base16backup
echo "current sc_ide_conf.yaml moved to sc_ide_conf.yaml.base16backup"
cp headers.yaml sc_ide_conf.yaml
for x in ../themes/*.yaml; do sed '1,3d' $x >> sc_ide_conf.yaml; done
mv sc_ide_conf.yaml ~/.config/SuperCollider/sc_ide_conf.yaml
echo "base16 themes installed!"
21 changes: 21 additions & 0 deletions linux-install-script/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SuperCollider base-16 themes Install script for linux

This script takes all of the themes in this repo and makes a single .yaml file out of them, saving time compared to copying them in one by one.

This is designed to work on Linux but can probably be easily adapted for OSX.

This script makes a backup of your current config file, then takes the `headers.yaml` file, copies it to a `sc_ide_conf.yaml` file in the same directory, and appends all theme data onto it, using this command:

```bash
for x in ../themes/*.yaml; do sed '1,3d' $x >> sc_ide_conf.yaml; done
```

It then moves the new `sc_ide_conf.yaml` to the Linux directory for SuperCollider themes.

If you just want to create the `sc_ide_conf.yaml` file without copying it to the new directory (if you are not on Linux or have the IDE config in a different place), delete the line

```bash
mv sc_ide_conf.yaml ~/.config/SuperCollider/sc_ide_conf.yaml
```

from the script