add: fish: auto fisher install
This commit is contained in:
parent
2c158b4386
commit
f7232b229b
1 changed files with 11 additions and 2 deletions
|
@ -7,9 +7,18 @@
|
||||||
# check fisher existence
|
# check fisher existence
|
||||||
if ! type fisher &>/dev/null
|
if ! type fisher &>/dev/null
|
||||||
echo "fisher does not exist."
|
echo "fisher does not exist."
|
||||||
echo "Please install fisher."
|
echo "Please install fisher from https://github.com/jorgebucaran/fisher"
|
||||||
|
echo ""
|
||||||
|
echo "==Automatic install=="
|
||||||
|
echo "You can run `curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher` right here"
|
||||||
|
echo "be sure to check install command on the fisher project homepage."
|
||||||
|
read -p "echo Install\?(default Y / N):\ " ans
|
||||||
|
if [ $ans = 'N' ]
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
# install script from github page
|
||||||
|
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
|
||||||
|
end
|
||||||
|
|
||||||
fisher update
|
fisher update
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue