forked from Blacksuan19/Dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathonce.sh
executable file
·69 lines (58 loc) · 2.03 KB
/
once.sh
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
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env bash
# this script should only be run once during the first setup
##
# Pacman Stuff
##
# add chaotic and herecura repos
function setup_repos() {
echo -e "Setting up Repos Mirrors..."
cat << EOF >> /etc/pacman.conf
[chaotic-aur]
#SigLevel = Never
Include = /etc/pacman.d/chaotic-mirrorlist
[herecura]
# packages built against stable
Server = https://repo.herecura.be/herecura/x86_64
EOF
echo -e "Pacman Repos Configured Successfully."
}
##
# Git Config
##
function setup_git() {
echo -e "Configuring git..."
# setup user details
git config --global user.name Blacksuan19
git config --global user.email [email protected]
# setup gpg signing
git config --global --add gpg.program /usr/bin/gpg
git config --global commit.gpgsign true
# setup diff-so-fancy
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
git config --global interactive.diffFilter "diff-so-fancy --patch"
git config --global color.ui true
git config --global color.diff-highlight.oldNormal "red bold"
git config --global color.diff-highlight.oldHighlight "red bold 52"
git config --global color.diff-highlight.newNormal "green bold"
git config --global color.diff-highlight.newHighlight "green bold 22"
git config --global color.diff.meta "11"
git config --global color.diff.frag "magenta bold"
git config --global color.diff.func "146 bold"
git config --global color.diff.commit "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.diff.whitespace "red reverseenv bash"
echo -e "Git Configured Successfully."
}
setup_repos
# install yay from chaotic-aur
sudo pacman -S --noconfirm yay
##
# Install packages
##
packages=(git diff-so-fancy stow lsd bat ksuperkey tmux ripgrep duf dust nerd-fonts-jetbrains-mono notion-app-enhanced picom-jonaburg-git)
yay -S --noconfirm $packages
setup_git
# setup prezto
echo -e "Downloading prezto..."
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto" &> /dev/null