2022-05-22 19:01:47 +00:00
|
|
|
#!/bin/bash
|
2022-05-19 14:10:12 +00:00
|
|
|
|
|
|
|
PATH_PREFIX=`pwd`
|
|
|
|
|
|
|
|
rm -r ~/.config/htop
|
|
|
|
ln -s $PATH_PREFIX/config/htop ~/.config/htop
|
|
|
|
|
|
|
|
rm ~/.gitconfig
|
|
|
|
ln -s $PATH_PREFIX/gitconfig ~/.gitconfig
|
|
|
|
|
|
|
|
rm ~/.nanorc
|
|
|
|
ln -s $PATH_PREFIX/nanorc ~/.nanorc
|
|
|
|
|
|
|
|
rm ~/.p10k.zsh
|
|
|
|
ln -s $PATH_PREFIX/p10k.zsh ~/.p10k.zsh
|
|
|
|
|
|
|
|
rm ~/.tmux.conf
|
|
|
|
ln -s $PATH_PREFIX/tmux.conf ~/.tmux.conf
|
|
|
|
|
|
|
|
rm ~/.zshrc
|
|
|
|
ln -s $PATH_PREFIX/zshrc ~/.zshrc
|
|
|
|
|
2022-05-20 18:55:19 +00:00
|
|
|
rm ~/.fzf.zsh
|
|
|
|
ln -s $PATH_PREFIX/fzf.zsh ~/.fzf.zsh
|
|
|
|
|
2022-05-20 20:53:00 +00:00
|
|
|
rm -r ~/.config/lf
|
|
|
|
ln -s $PATH_PREFIX/config/lf ~/.config/lf
|
|
|
|
|
2024-08-04 12:32:21 +00:00
|
|
|
rm -r ~/.config/micro
|
|
|
|
ln -s $PATH_PREFIX/config/micro ~/.config/micro
|
|
|
|
|
2022-05-22 16:39:46 +00:00
|
|
|
# get tmux plugin manager going if needed
|
2022-05-22 18:19:19 +00:00
|
|
|
if ! ( [ -d ~/.tmux -a -d ~/.tmux/plugins -a -d ~/.tmux/plugins/tpm ] ); then
|
2022-05-22 16:39:46 +00:00
|
|
|
mkdir -p ~/.tmux/plugins/tpm
|
|
|
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
|
|
|
fi
|
|
|
|
|
2022-05-21 17:02:50 +00:00
|
|
|
# get asdf going if needed
|
2022-05-22 18:19:19 +00:00
|
|
|
if ! [ -d ~/.asdf ]; then
|
2022-05-21 17:02:50 +00:00
|
|
|
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
|
|
|
|
cd ~/.asdf
|
|
|
|
git checkout `git describe --tags --abbrev=0`
|
|
|
|
cd $PATH_PREFIX
|
|
|
|
fi
|
|
|
|
|
2023-07-03 15:05:34 +00:00
|
|
|
# fonts
|
|
|
|
if ! [ -d ~/.fonts ]; then
|
|
|
|
mkdir ~/.fonts
|
|
|
|
fi
|
|
|
|
cp $PATH_PREFIX/fonts/* ~/.fonts/
|
|
|
|
|
2022-05-22 19:01:47 +00:00
|
|
|
# termux tuning
|
|
|
|
if grep -q "Android" <<< `uname -a`; then
|
2022-08-06 19:46:25 +00:00
|
|
|
# grab always run in background permission during early setup
|
|
|
|
termux-wake-lock
|
|
|
|
termux-wake-unlock
|
2022-05-22 19:01:47 +00:00
|
|
|
if ! [ -d ~/.termux ]; then
|
|
|
|
mkdir ~/.termux
|
|
|
|
fi
|
|
|
|
rm ~/.termux/termux.properties
|
|
|
|
# must be copy to prevent error on termux startup
|
|
|
|
cp $PATH_PREFIX/termux/termux.properties ~/.termux/termux.properties
|
2022-05-22 19:18:28 +00:00
|
|
|
# shortcuts
|
|
|
|
if ! [ -d ~/.shortcuts ]; then
|
|
|
|
mkdir ~/.shortcuts
|
|
|
|
fi
|
|
|
|
# cannot use symlinks -- termux forces full path execution from android launcher shortcuts
|
2022-08-06 18:13:56 +00:00
|
|
|
cp $PATH_PREFIX/shortcuts/* ~/.shortcuts/
|
2022-05-22 19:01:47 +00:00
|
|
|
# reload settings
|
|
|
|
termux-reload-settings
|
|
|
|
fi
|
|
|
|
|
2024-08-02 18:24:48 +00:00
|
|
|
echo "eza fd bat tmux htop nano most ripgrep emacs zsh lf restic rclone glow progress s-tui killport micro btop bmon"
|
|
|
|
echo "lazydocker for docker systems"
|
|
|
|
echo "nvtop for gpu systems"
|
|
|
|
echo "termux-api for termux systems"
|
|
|
|
echo "browsh & carbonyl for web (resource heavy)"
|
2022-05-19 14:10:12 +00:00
|
|
|
echo "copy restic.sh if desired/needed"
|
2022-08-11 16:58:25 +00:00
|
|
|
echo "setup rclone for org/nextcloud sync if necessary (use 'nc-personal' for destination name)"
|
2022-05-22 16:39:46 +00:00
|
|
|
echo "run tmux and do <prefix>-I to install plugins and finish setup"
|