mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 17:57:38 +08:00
27 lines
466 B
Bash
27 lines
466 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -o pipefail
|
||
|
set -o errexit
|
||
|
set -o nounset
|
||
|
|
||
|
if [[ $FISH_RELEASE = "brew" ]]; then
|
||
|
brew update
|
||
|
brew install fish
|
||
|
else
|
||
|
if [[ $FISH_RELEASE == "2" ]]; then
|
||
|
REPO_PPA="ppa:fish-shell/release-2"
|
||
|
else
|
||
|
REPO_PPA="ppa:fish-shell/release-3"
|
||
|
fi
|
||
|
|
||
|
if [[ $FISH_RELEASE != "stock" ]]; then
|
||
|
sudo apt-add-repository -y $REPO_PPA
|
||
|
fi
|
||
|
|
||
|
sudo apt-cache policy fish
|
||
|
sudo apt-get update
|
||
|
sudo apt-get install -y fish
|
||
|
fi
|
||
|
|
||
|
fish --version
|