summarylogtreecommitdiffstats
path: root/fish-ayu-theme.install
diff options
context:
space:
mode:
Diffstat (limited to 'fish-ayu-theme.install')
-rw-r--r--fish-ayu-theme.install24
1 files changed, 24 insertions, 0 deletions
diff --git a/fish-ayu-theme.install b/fish-ayu-theme.install
new file mode 100644
index 000000000000..1ca67cb95157
--- /dev/null
+++ b/fish-ayu-theme.install
@@ -0,0 +1,24 @@
+post_install() {
+ echo ":: Setting up ayu_path..."
+ fish -Pc 'set -U ayu_path /etc/fish/'
+ echo ":: ayu_path has been set!"
+ echo ":: You must choose one of three options for your scheme: light, dark, or mirage"
+ echo ":: You can set the colorscheme with 'set -U ayu_variant {scheme}', then load it with 'load_ayu_theme'"
+}
+
+post_upgrade() {
+ echo ":: Checking for existing ayu_path..."
+ fish -Pc 'set -Uq ayu_path'
+ if [[ $? == 0 ]]; then
+ echo ":: ayu_path already set!"
+ else
+ echo ":: ayu_path not set!"
+ post_install
+ fi
+}
+
+pre_remove() {
+ echo ":: Removing ayu_path"
+ fish -Pc 'set -Uq ayu_path || set -Ue ayu_path'
+ echo ":: Removed ayu_path!"
+}