mirror of
https://github.com/Paul-Houser/StartTree.git
synced 2024-11-21 23:13:06 +01:00
browsers will no longer cache colors.css which fixes colors not updating
This commit is contained in:
parent
d60c0212e7
commit
14a00433f8
@ -119,7 +119,7 @@ def gen_style(file_dict):
|
|||||||
if theme == "pywal":
|
if theme == "pywal":
|
||||||
theme = home + '/.cache/wal/colors.css'
|
theme = home + '/.cache/wal/colors.css'
|
||||||
else:
|
else:
|
||||||
theme = './themes/' + theme + '.css'
|
theme = repo_dir + '/themes/' + theme + '.css'
|
||||||
|
|
||||||
copyfile(theme, home + '/.cache/StartTree/styles/colors.css')
|
copyfile(theme, home + '/.cache/StartTree/styles/colors.css')
|
||||||
|
|
||||||
|
3
init.sh
3
init.sh
@ -62,4 +62,7 @@ ln -s $FILEPATH $HOME/.local/bin/starttree.py
|
|||||||
echo "generate.py has been linked to $HOME/.local/bin/"
|
echo "generate.py has been linked to $HOME/.local/bin/"
|
||||||
echo "Make sure this directory is in your \$PATH"
|
echo "Make sure this directory is in your \$PATH"
|
||||||
|
|
||||||
|
FILEPATH=$(readlink -f "docker/data/default.conf")
|
||||||
|
ln -s $FILEPATH $HOME/.cache/StartTree/default.conf
|
||||||
|
|
||||||
sed -i "/# replace line/{n;s@.*@repo_dir = \"$(pwd)\"@}" generate.py
|
sed -i "/# replace line/{n;s@.*@repo_dir = \"$(pwd)\"@}" generate.py
|
||||||
|
Loading…
Reference in New Issue
Block a user