Last active
September 23, 2018 16:16
-
-
Save daniel-barrows/da42ccba0a3c7fd4586225209d552c5f to your computer and use it in GitHub Desktop.
Download the latest SpeedCrunch color schemes and install them for the current user. Workaround for an Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/speedcrunch/+bug/1729575
This file contains 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 characters
#!/bin/bash | |
# Name:: speedcrunch-color-update.sh | |
# Copyright:: 2018 Daniel Barrows | |
# Licence:: zlib/libpng | |
# Status:: beta | |
mv_args="$@" | |
branch_url=https://bitbucket.org/heldercorreia/speedcrunch.git | |
tmpdir="$( mktemp --directory speedcrunch-color-update-XXX )" | |
trap 'rm -Rf "$tmpdir"' EXIT | |
git clone "$branch_url" "$tmpdir" || exit $? | |
mkdir -p ~/.local/share/SpeedCrunch/color-schemes | |
mv -i $mv_args "$tmpdir"/src/resources/color-schemes/* \ | |
~/.local/share/SpeedCrunch/color-schemes/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment