solbuilds/setup-solus.sh

53 lines
1.7 KiB
Bash
Raw Normal View History

2018-01-29 21:01:53 +01:00
#!/bin/bash
2018-01-30 10:48:40 +01:00
cd
2018-01-29 21:01:53 +01:00
2018-01-30 19:27:00 +01:00
sudo eopkg up -y
2018-01-29 21:01:53 +01:00
sudo snap install spotify
sudo eopkg it -c system.devel -y
sudo eopkg it xrdb zsh git git-lfs telegram htop etcher golang zip unzip cava neofetch aria2 acpi ncmpcpp rxvt-unicode vim epson-inkjet-printer-escpr flatpak texlive-all solbuild pip -y
2018-01-30 16:55:51 +01:00
sudo ln -s /usr/bin/telegram /usr/bin/telegram-desktop &> /dev/null
2018-01-30 09:41:42 +01:00
2018-01-30 21:24:15 +01:00
eopkg lr | grep solbuilds -q
if [[ $? -ne 1 ]]; then
sudo eopkg rr solbuilds
fi
sudo eopkg ar solus.sh https://repo.solus.sh/eopkg-index.xml.xz
sudo eopkg er solus.sh
2018-01-30 16:55:51 +01:00
sudo eopkg it chrome cli-visualizer dotnet-sdk geogebra insync jetbrains-toolbox libspotify libspotify-devel sublime-text-dev xarchiver -y
2018-01-30 10:48:40 +01:00
2018-01-29 21:01:53 +01:00
sudo solbuild update
if [[ $? == 1 ]]; then
sudo solbuild init
sudo solbuild update
fi
sudo pip install mopidy mopidy-spotify mopidy-spotify-web mopidy-iris
flatpak install --user --from https://download.mono-project.com/repo/monodevelop.flatpakref -y
2018-01-31 07:40:14 +01:00
wget https://solus.sh/dotfiles.zip -O /tmp/dotfiles.zip
2018-01-29 21:01:53 +01:00
unzip -o /tmp/dotfiles.zip -d .
xrdb -load .Xresources
2018-01-31 07:40:14 +01:00
bash -c "$(curl -fsSL solus.sh/solus-ohmyz.sh)"
2018-01-29 21:01:53 +01:00
cat .zshrc | grep transfer.sh -q
if [[ $? -ne 0 ]]; then
curl -fsSL https://gist.githubusercontent.com/anonymous/c2a9e0ea86b5fb9c7971182f461e33e4/raw/567a15b8491cb9106c53835c731e583d3b12d7b5/gistfile1.txt >> .zshrc
fi
2018-01-30 16:55:51 +01:00
cat .zshrc | grep "alias gst=" -q
if [[ $? -ne 0 ]]; then
printf "\n" >> .zshrc
echo "alias gst='git status'" >> .zshrc
echo "alias gad='git add'" >> .zshrc
echo "alias gcm='git commit'" >> .zshrc
echo "alias gcmm='git commit -m'" >> .zshrc
echo "alias gps='git push'" >> .zshrc
echo "alias gpl='git pull'" >> .zshrc
echo "alias grm='git rm'" >> .zshrc
fi