forked from Danish1999/scripts-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinuxsetup.sh
More file actions
executable file
·60 lines (50 loc) · 2.13 KB
/
linuxsetup.sh
File metadata and controls
executable file
·60 lines (50 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
#
# Copyright (C) 2019 nysascape
#
# Licensed under the Raphielscape Public License, Version 1.d (the "License");
# you may not use this file except in compliance with the License.
#
# Let's install some packages
if [[ "$*" =~ "arch"* ]]; then
sudo pacman -S zsh adb fastboot curl git code neofetch iwd dhcpcd gnome-terminal lightdm gnome-backgrounds lightdm-gtk-greeter telegram-desktop ttf-opensans
else
sudo apt-get -y install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev zsh
fi
# Run oh-my-zsh installer unatteneded
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# Setup Pure ZSH theme
mkdir -p "$HOME/.zsh"
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
echo 'fpath+=("$HOME/.zsh/pure")' >> ~/.zshrc
echo 'autoload -U promptinit; promptinit' >> ~/.zshrc
echo 'prompt pure' >> ~/.zshrc
# Clone in my aliases
git clone https://github.com/nysascape/aliases ~/.aliases
echo "source ~/.aliases/aliases" >> ~/.zshrc
# Git configurations
git config --global user.name "nysascape"
git config --global user.email "jago@nysascape.digital"
git config --global credential.helper store
git config --global commit.gpgsign true
git config --global user.signingkey "A15571E738CE3CD4"
# GCC 9 is always a good thing to have
git clone https://github.com/arter97/arm64-gcc --depth=1 ~/gcc9
git clone https://github.com/arter97/arm32-gcc --depth=1 ~/gcc932
# Add the Gerrit change-id hook
mkdir -p ~/.git/hooks
git config --global core.hooksPath ~/.git/hooks
curl -Lo ~/.git/hooks/commit-msg https://review.aosip.dev/tools/hooks/commit-msg
chmod u+x ~/.git/hooks/commit-msg
# Change shell to ZSH
chsh -s "$zsh"
# Arch stuff
if [[ "$*" =~ "arch"* ]]; then
# Install aurpkg
git clone --depth=1 https://aur.archlinux.org/aurpkg.git /tmp/aurpkg
cd /tmp/aurpkg
makepkg -si
cd ~
# Install Google Chrome
aurpkg -S google-chrome
fi