mirror of
https://github.com/ivabus/dotfiles
synced 2024-11-24 09:05:07 +03:00
final v3
This commit is contained in:
parent
ab0d0c8f07
commit
9275a29c86
2 changed files with 6 additions and 2 deletions
|
@ -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\`"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue