#!/bin/env fish begin set -l dir (status dirname) source "$dir/../../Scripts/software.fish" function installSW configureSW end function configureSW -V dir source "$dir/../bash/profile.fish" source "$dir/../fish/profile.fish" set -l file /etc/aliae/aliae.yml sudo install -Dm644 "$dir/aliae.yml" "$file" function getBashStatements echo 'eval "$(aliae init bash)"' echo 'eval "$(aliae completion bash)"' end begin echo "export ALIAE_CONFIG=$(string escape "$file")" end | installBashProfile "aliae" "aliae" if type -q fish begin printf %s\n \ "aliae init fish | source" \ "aliae completion fish | source" end | installFishProfile "aliae" "aliae" end end runInstaller $argv end