Install `starship`.
This commit is contained in:
parent
23dfb61e2d
commit
a42048cc7d
|
@ -63,6 +63,9 @@ include_recipe './mc.rb'
|
||||||
# Install lsyncd command:
|
# Install lsyncd command:
|
||||||
include_recipe './lsyncd.rb'
|
include_recipe './lsyncd.rb'
|
||||||
|
|
||||||
|
# Install starship command:
|
||||||
|
include_recipe './starship.rb'
|
||||||
|
|
||||||
# recipes for Ubuntu 16.04
|
# recipes for Ubuntu 16.04
|
||||||
if node['platform_version'].to_f == 16.04
|
if node['platform_version'].to_f == 16.04
|
||||||
# ntp configurations
|
# ntp configurations
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
# インストールスクリプトのダウンロード
|
||||||
|
execute 'wget -O /tmp/starship-install.sh https://starship.rs/install.sh' do
|
||||||
|
not_if 'test -e /usr/local/bin/starship'
|
||||||
|
end
|
||||||
|
|
||||||
|
execute 'chmod +x /tmp/starship-install.sh' do
|
||||||
|
not_if 'test -e /usr/local/bin/starship'
|
||||||
|
end
|
||||||
|
|
||||||
|
execute '/tmp/starship-install.sh -y' do
|
||||||
|
user 'root'
|
||||||
|
|
||||||
|
not_if 'test -e /usr/local/bin/starship'
|
||||||
|
end
|
Loading…
Reference in New Issue