Install `starship`.

This commit is contained in:
Kazuhiro MUSASHI 2022-08-07 18:18:36 +09:00
parent 23dfb61e2d
commit a42048cc7d
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -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