This commit is contained in:
Ivan Bushchik 2023-07-05 14:32:17 +03:00
parent ab0d0c8f07
commit 9275a29c86
No known key found for this signature in database
GPG key ID: 9F6DDABE11A2674D
2 changed files with 6 additions and 2 deletions

View file

@ -17,12 +17,13 @@ Linux/x86_64)
esac esac
if command -v gum >/dev/null; then if command -v gum >/dev/null; then
TEA_GUM=gum TEA_GUM=`which gum`
else else
curl https://tea.xyz -o /tmp/tea curl https://tea.xyz -o /tmp/tea
TEA_GUM=$(sh /tmp/tea --silent +charm.sh/gum which gum | tail -n 1) TEA_GUM=$(sh /tmp/tea --silent +charm.sh/gum which gum | tail -n 1)
fi fi
echo $TEA_GUM > /tmp/gum
$TEA_GUM format -- <<EoMD $TEA_GUM format -- <<EoMD
# hi, let's setup env. # hi, let's setup env.
@ -36,6 +37,7 @@ $TEA_GUM format -- <<EoMD
* htop * htop
* git * git
* zsh * zsh
* gum
## What could be additionally installed ## What could be additionally installed
@ -86,6 +88,8 @@ $TEA_GUM format "Installing \`htop\`"
$TEA +htop.dev sh -c "exit" $TEA +htop.dev sh -c "exit"
$TEA_GUM format "Installing \`git\`" $TEA_GUM format "Installing \`git\`"
$TEA +git-scm.org sh -c "exit" $TEA +git-scm.org sh -c "exit"
$TEA_GUM format "Installing \`gum\`"
$TEA +charm.sh/gum sh -c "exit"
if $TEA_GUM confirm "Would you like to install compilers/interpretators (LLVM, Rust, Python)?"; then if $TEA_GUM confirm "Would you like to install compilers/interpretators (LLVM, Rust, Python)?"; then
$TEA_GUM format "Installing \`rust\` and \`cargo\`" $TEA_GUM format "Installing \`rust\` and \`cargo\`"

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
set -e set -e
TEA_GUM=$(cat /tmp/gum) TEA_GUM=$HOME/.env/tea/charm.sh/gum/v\*/bin/gum
$TEA_GUM format "Linking \`.zshrc\`" $TEA_GUM format "Linking \`.zshrc\`"
if [ -f $HOME/.zshrc ]; then if [ -f $HOME/.zshrc ]; then