cott-io / iron-cli-releases-repo

Project Iron (Fe) release artifacts and installation utilities
0 stars 0 forks source link

Add support for fish terminal #1

Open svc-cott-io opened 6 years ago

svc-cott-io commented 6 years ago

Thanks to @NathanBass, we have the beginnings of support for the fish terminal. I'm documenting the script for posterity:

cat ~/.config/fish/fe.fish
set --export IRON_VERSION "ISSUE-6"
set --export IRON_OS_ARCH "linux_amd64"
set --export IRON_HOME "~/.cott"
set --export IRON_AUTO_UPDATE_INTERVAL 3600
set IRON_PATH "~/.cott/bin"

And this is a one-time part: (This is to prevent the path from being bloated. Universal variables will be updated for each source - in an additive fashion. Do a check and set style operation in the above script)

echo 'source "$HOME/.config/fish/fe.fish"' >> ~/.config/fish/config.fish
set --universal fish_user_paths $fish_user_paths $IRON_PATH