tp/install.sh

34 lines
980 B
Bash
Raw Normal View History

2019-10-31 13:39:43 +01:00
#!/usr/bin/env bash
2019-11-05 16:17:51 +01:00
if [ "$USER" -e "etu" ]; then
2019-10-31 13:39:43 +01:00
echo "Please run this script with user `etu` instead."
exit
fi
2019-09-05 19:27:39 +02:00
echo "Setting keyboard to bepo (shift-left+shift-right to go back to azerty"
echo 'setxkbmap -layout "fr,fr" -variant bepo, -option "grp:shifts_toggle"' >> /home/etu/.bashrc
. /home/etu/.bashrc
echo "Installing some usefull softwares"
2019-09-06 07:45:58 +02:00
sudo apt install ripgrep fd-find git vim byobu vim-syntastic xclip -y
echo "Adding some aliases"
sudo cat "alias fd='fdfind'" >> /root/.bashrc
2019-09-05 19:27:39 +02:00
echo "Cloning git repository"
git clone https://git.flavien.ovh/louis_royer/tp --depth 1
echo "Installing .vimrc for root"
sudo cp tp/vim/vimrc /root/.vimrc
sudo cp tp/vim/vimrc.bepo /root/.vimrc.bepo
sudo chown root:root /root/.vimrc*
2019-10-31 13:39:43 +01:00
echo "Installing .vimrc for etu"
sudo cp tp/vim/vimrc /home/etu/.vimrc
sudo cp tp/vim/vimrc.bepo /home/etu/.vimrc.bepo
sudo chown etu:etu /home/etu/.vimrc*
2019-09-05 19:27:39 +02:00
echo "End for installation, lets begin your work!"
2019-11-07 10:12:38 +01:00
echo "run \`source ~/.bashrc\`"
2019-09-05 19:27:39 +02:00