Last active
June 1, 2024 16:22
-
-
Save ibnishak/7827cf469b171f295e77aa6ad99f71e4 to your computer and use it in GitHub Desktop.
Termux-setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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