Skip to content

Instantly share code, notes, and snippets.

@ibnishak
Last active November 27, 2020 21:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibnishak/7827cf469b171f295e77aa6ad99f71e4 to your computer and use it in GitHub Desktop.
Save ibnishak/7827cf469b171f295e77aa6ad99f71e4 to your computer and use it in GitHub Desktop.
Termux-setup
echo "update and upgrades"
apt update
apt upgrade
echo "Installing essentials"
apt install git curl fzf ripgrep fd bat exa zsh jq neovim termux-api
echo "changing shells"
chsh zsh
mkdir -p ~/bin ~/.config/chezmoi ~/.cache/zsh_z
echo "Installing chezmoi"
#echo "Finding latest chezmoi release"
#mkdir chezmoi && cd chezmoi
#du=$(curl https://api.github.com/repos/twpayne/chezmoi/releases/latest | jq -r '.assets[].browser_download_url' | rg linux_arm64.tar.gz)
#echo "Downloading chezmoi. This might take time."
#curl -s -L --create-dirs -o chezmoi.tar.gz $du
#echo "Extracting chezmoi"
#tar -xf ./chezmoi.tar.gz
#echo "Moving chezmoi to ~/bin"
#mv chezmoi ~/bin
#echo "Cleaning up"
#rm -rf ~/chezmoi
curl -sfL https://git.io/chezmoi | sh
echo "Writing chezmoi toml"
cat << eof > ~/.config/chezmoi/chezmoi.toml
[data]
editor = "nvim"
shebang = "#!/data/data/com.termux/files/usr/bin/env bash"
eof
echo "exporting user for chezmoi"
export USER=richi
echo "Chezmoi init"
~/bin/chezmoi init https://gitlab.com/ibnishak/dotfiles.git
~/bin/chezmoi apply
echo "Installing antibody"
curl -sfL git.io/antibody | sh -s - -b ~/bin
echo "Installing zsh plugins"
~/bin/antibody bundle < ~/.config/zsh/lib/plugins_list.txt > ~/.config/zsh/lib/plugins.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment