Browse Source

Modularity

main
Yiğit Çolakoğlu 4 years ago
parent
commit
19afa2c908
2 changed files with 12 additions and 9 deletions
  1. +1
    -1
      arch-setup/fetch_keys.sh
  2. +11
    -8
      install.sh

+ 1
- 1
arch-setup/fetch_keys.sh View File

@ -15,7 +15,7 @@ sudo chmod +x /usr/bin/jsteg
sudo wget -O /usr/bin/slink https://minio.yigitcolakoglu.com/dotfiles/slink-linux-amd64 > /dev/null 2> /dev/null
sudo chmod +x /usr/bin/slink
~/.local/bin/jsteg reveal $loc > /tmp/out.zip.gpg
/usr/bin/jsteg reveal $loc > /tmp/out.zip.gpg
echo "Please enter your passphrase: "
gpg -d /tmp/out.zip.gpg > /tmp/out.zip


+ 11
- 8
install.sh View File

@ -16,21 +16,24 @@ if [ ! "$username" = "yigit" ]; then
fi
# Don't prompt for a password for the rest of the script
sudo echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/nopwd
sudo bash -c 'echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/nopwd'
# Install packages
echo "Running update"
yay -S --noconfirm $(cat ~/.dotfiles/arch-setup/packages.minimal) > /dev/null
echo -n "Would you like to install all the necessary packages, not doing so might break most of the functionality?(Y/n): "
read deps
if [ ! "$deps" = "n" ]; then
echo "Running update"
yay -S --noconfirm $(cat ~/.dotfiles/arch-setup/packages.minimal) > /dev/null 2> /dev/null
fi
rm -rf ~/.dotfiles_backup
mkdir -p ~/.dotfiles_backup
# Link XDG Directories
# Config
mvie ~/.config ~/.dotfiles_backup
ln -s ~/.dotfiles/config ~/.config/
ln -s ~/.dotfiles/config ~/.config
for d in ~/.dotfiles_backup/config/* ; do
mv $d ~/.config 2> /dev/null
done
@ -157,9 +160,9 @@ mkdir -p ~/.tmux/plugins
vim +PlugInstall +qall
# Install mconnect
git clone https://github.com/theFr1nge/mconnect.git /tmp/mconnect > /dev/null 2> /dev/null
git clone https://github.com/theFr1nge/mconnect.git /tmp/mconnect.git > /dev/null 2> /dev/null
prev=$(pwd)
cd /tmp/mconnect
cd /tmp/mconnect.git
mkdir -p build
cd build
meson .. > /dev/null 2> /dev/null
@ -182,9 +185,9 @@ sudo make install > /dev/null 2> /dev/null
cd $prev
# Do a cleanup and delete some problematic files
sudo rm -rf /etc/sudoers.d/nopwd
rm -rf ~/.bash_profile
sudo rm -rf /etc/urlview/system.urlview
sudo rm -rf /etc/sudoers.d/nopwd
if [ "$username" = "yigit" ]; then
~/.dotfiles/arch-setup/fetch_keys.sh # Fetch keys (For personal use, this is not for you)


Loading…
Cancel
Save