Add some dep installation to copy.sh
This commit is contained in:
parent
904bca405c
commit
1ccd582a7b
18
copy.sh
18
copy.sh
|
@ -32,3 +32,21 @@ mkdir -p ~/.vim/colors
|
||||||
ln -sf $SCRIPT_DIR/.vim/colors/* ~/.vim/colors/
|
ln -sf $SCRIPT_DIR/.vim/colors/* ~/.vim/colors/
|
||||||
|
|
||||||
touch ~/.zsh_local
|
touch ~/.zsh_local
|
||||||
|
|
||||||
|
# Install required packages
|
||||||
|
if [[ "$1" == "--install" ]]; then
|
||||||
|
echo -n "Rust is "
|
||||||
|
if ! where cargo; then
|
||||||
|
echo "not installed. Installing..."
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
|
else
|
||||||
|
echo "installed."
|
||||||
|
fi
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
if where cargo; then
|
||||||
|
cargo install bat
|
||||||
|
fi
|
||||||
|
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
|
||||||
|
echo "Starship requires an NFont: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip"
|
||||||
|
echo "You may wish to install fzf"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue