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>
This commit is contained in:
Benno Bielmeier 2021-05-13 12:57:23 +02:00
parent fd70a2afdd
commit aeb501de9b
No known key found for this signature in database
GPG Key ID: 766C2CB967072416
2 changed files with 5 additions and 1 deletions

View File

@ -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.

4
install.fish Executable file
View File

@ -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"