-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
executable file
·25 lines (19 loc) · 889 Bytes
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env fish
if [ ! (which git) ]
echo "`git` is required for installation. Please try again after installing an accessible git binary."
exit 1
end
set -q XDG_CONFIG_HOME
and set FISH_PATH "$XDG_CONFIG_HOME/fish"
or set FISH_PATH "$HOME/.config/fish"
[ -d "$FISH_PATH/triton/github.com/dukejones/triton" ]
or git clone https://github.com/dukejones/triton.git "$FISH_PATH/triton/github.com/dukejones/triton"
mkdir -p "$FISH_PATH/functions"
[ -f "$FISH_PATH/functions/triton.fish" ]
or ln -s "$FISH_PATH/triton/github.com/dukejones/triton/functions/triton.fish" "$FISH_PATH/functions/"
exec fish
echo "Welcome to Triton! To bootstrap a nice set of default fish configuration files you may wish to run:"
echo
echo "triton bootstrap"
echo
echo "Triton: calling forth packages from the primordial ocean of the internet for ultimate shell happiness. 👑"