From aeb501de9b1764dba13b206294ba2ff22915e676 Mon Sep 17 00:00:00 2001
From: Benno Bielmeier <github@bbenno.com>
Date: Thu, 13 May 2021 12:57:23 +0200
Subject: [PATCH] Add installation script

The installation script is inspired by the one of https://github.com/ivakyb/fish_ssh_agent.

Signed-off-by: Benno Bielmeier <github@bbenno.com>
---
 README.md    | 2 +-
 install.fish | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
 create mode 100755 install.fish

diff --git a/README.md b/README.md
index 636902b..7b78170 100644
--- a/README.md
+++ b/README.md
@@ -24,4 +24,4 @@ fisher install danhper/fish-ssh-agent
 
 ### Manually
 
-Copy `functions` and `conf.d` to your `$__fish_config_dir` directory. That's all.
+Copy `functions` and `conf.d` to your `$__fish_config_dir` directory by executing `./install.fish`. That's all.
diff --git a/install.fish b/install.fish
new file mode 100755
index 0000000..a16039e
--- /dev/null
+++ b/install.fish
@@ -0,0 +1,4 @@
+#! /bin/env fish
+set curr_dir (dirname (status --current-filename))
+cp -r "$curr_dir"/functions "$__fish_config_dir"
+cp -r "$curr_dir"/conf.d "$__fish_config_dir"