2013-05-02 23:36:55 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-10-15 21:52:57 +02:00
|
|
|
optstring="rdh"
|
|
|
|
|
|
|
|
while getopts ${optstring} arg; do
|
|
|
|
case ${arg} in
|
|
|
|
h)
|
|
|
|
echo "Update home with config files"
|
|
|
|
echo "WARNING: ERASE YOUR ACTUAL CONFIG"
|
|
|
|
echo
|
|
|
|
echo "Usage:"
|
|
|
|
echo "-d : copy desktop files"
|
|
|
|
echo "-r : copy root files"
|
|
|
|
echo "-R : remove old homes config"
|
|
|
|
echo "-h : this help"
|
|
|
|
echo
|
|
|
|
echo "You have to launch an other script to override secrets after"
|
|
|
|
exit
|
|
|
|
;;
|
|
|
|
d)
|
|
|
|
# Copy the desktop part
|
|
|
|
echo "**** Copying desktop part"
|
|
|
|
rsync -av ./desktop/ ~/
|
|
|
|
pip install --user --break-system-packages -U poezio-omemo epr-reader
|
|
|
|
sed -i "s/REPLACEDEVICEHOSTNAME/`hostname`/g" ~/.config/poezio/poezio.cfg
|
|
|
|
;;
|
|
|
|
R)
|
|
|
|
echo "**** Remove old config"
|
|
|
|
|
|
|
|
# Remove zsh
|
|
|
|
rm ~/.zcompdump
|
|
|
|
rm -rf ~/.zsh*
|
|
|
|
|
|
|
|
# Remove old tmux files
|
|
|
|
rm -f ~/.tmux.conf ~/.tmux-theme
|
|
|
|
|
|
|
|
rm -f ~/.config/fish/cd.fish
|
|
|
|
;;
|
|
|
|
r)
|
|
|
|
echo "**** Copying root part"
|
|
|
|
rsync -av ./root/ ~/
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
go install github.com/jesseduffield/lazydocker@latest
|
|
|
|
go install github.com/jesseduffield/lazygit@latest
|
|
|
|
|
|
|
|
rm -rf ~/.cache/nvimpager-git
|
|
|
|
mkdir -p ~/.cache
|
|
|
|
git clone https://github.com/lucc/nvimpager ~/.cache/nvimpager-git
|
|
|
|
pushd ~/.cache/nvimpager-git
|
|
|
|
make PREFIX=$HOME/.local install
|
2017-07-16 19:41:30 +02:00
|
|
|
popd
|
2022-10-15 21:52:57 +02:00
|
|
|
rm -rf ~/.cache/nvimpager-git
|
2020-11-16 22:12:46 +01:00
|
|
|
|
2013-05-03 10:58:55 +02:00
|
|
|
# Copy the common part
|
2013-12-16 01:34:51 +01:00
|
|
|
rsync -av ./common/ ~/
|