1
0
Fork
You've already forked ThemeSharing
0
script to easily share configuration files
  • Python 95.7%
  • Shell 4.3%
2022年05月26日 19:24:14 +02:00
example Upload files to 'example' 2022年05月26日 19:07:27 +02:00
apply_theme.py Upload files to '' 2022年05月26日 19:05:54 +02:00
LICENSE Initial commit 2022年05月26日 19:05:08 +02:00
README.md Update 'README.md' 2022年05月26日 19:24:14 +02:00

oh nice theme now it's OURS

script to easily share configuration files

Install a theme

To install a theme, just run apply_theme.py with python3 in the theme directory, then run exec bash to restart your bash

Create a theme

  1. Create a theme directory with this structure:
theme_name/theme_descriptor.json
theme_name/(files)

where (files) are all the configuration files you wish to include in your theme.

  1. Edit theme_descriptor.json to tell the script and the user what to do

it should look like this (everything in caps should be replaced):

{
	"name": "THEME NAME",
	"author": "YOUR NAME",
	"notes": "TEXT DISPLAYED TO THE USER BEFORE THEY INSTALL THE THEME",
	"files": {
		"FILENAME": {"dest": "DESTINATION PATH", "mode":"wRITE OR aPPEND"},
	}
}

Here's an example

  1. That's it!