-
Notifications
You must be signed in to change notification settings - Fork 0
/
init_config.sh
executable file
·89 lines (78 loc) · 3.65 KB
/
init_config.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
DOTFILES_PATH="$HOME/.dotfiles"
if [[ "`uname -a`" == *"fedora"* ]]; then
sudo dnf copr enable gourlaysama/dust
sudo dnf update -y
sudo dnf install -y rofi wine xclip gcc exa ripgrep dust fd-find zsh \
alacritty tmux mpv ipython python3 gdb make cmake g++ dejavu-fonts-all \
ruby gem java-17-openjdk-devel java-17-openjdk clang-tools-extra \
xz-devel openssl-devel fontawesome-fonts acpi i3blocks feh dunst \
eluge-gtk lxappearance htop curl wget bat pip patchelf \
qemu-user qemu-user-static gcc-riscv64-linux-gnu \
binutils-riscv64-linux-gnu gcc-aarch64-linux-gnu \
binutils-aarch64-linux-gnu \
texinfo readline-devel sqlite3 arc-theme unrar gimp blender light \
p7zip p7zip-plugins strace ltrace ruby-devel binwalk \
java-runtime-decompiler nasm perf scrot corectrl
fi
if [[ "`uname -a`" == *"arch"* ]]; then
sudo pacman -Syu emacs firefox neovim ttf-dejavu \
noto-fonts noto-fonts-cjk noto-fonts-emoji \
gcc python python-pip zip p7zip wget git curl \
openbsd-netcat ipython ruby rubygems mpv tmux fish ropper \
python-pwntools clang htop bat patchelf perf nasm binwalk \
blender ltrace strace unrar rustup dunst feh acpi \
ttf-font-awesome lxappearance wine-staging xclip exa ripgrep dust \
zsh alacritty gdb make cmake bear bash-completion man man-pages \
qemu-full jdk-openjdk openjdk-doc openjdk-src \
riscv32-elf-binutils riscv32-elf-gdb riscv32-elf-newlib \
riscv64-elf-binutils riscv64-elf-gcc riscv64-elf-gdb \
riscv64-elf-newlib riscv64-linux-gnu-binutils \
riscv64-linux-gnu-gcc riscv64-linux-gnu-gdb \
riscv64-linux-gnu-glibc riscv64-linux-gnu-linux-api-headers \
aarch64-linux-gnu-binutils aarch64-linux-gnu-gcc \
aarch64-linux-gnu-gdb aarch64-linux-gnu-glibc \
arm-none-eabi-binutils arm-none-eabi-gcc arm-none-eabi-gdb \
python-ipdb scrot fd
fi
declare -a commands=("git" "gem" "pip" "curl")
for command in "${commands[@]}"
do
if ! command -v "$command" &> /dev/null
then
echo "NO ${command} DETECTED. Please make sure you have everything" \
"installed before proceeding."
exit 1
fi
done
mkdir -p ~/.config
mkdir -p ~/.config/mpv
mkdir -p ~/.config/tmux
mkdir -p ~/.config/i3
mkdir -p ~/Projects
mkdir -p ~/FOSS
mkdir -p ~/.scripts
mkdir -p ~/org
sudo gem install one_gadget
sudo gem install seccomp-tools
git clone https://github.com/pwndbg/pwndbg ~/FOSS/pwndbg
ln -sf "$DOTFILES_PATH/mpv.conf" ~/.config/mpv/mpv.conf
ln -sf "$DOTFILES_PATH/pwninit_template.py" ~/.config/pwninit_template.py
ln -sf "$DOTFILES_PATH/tmux.conf" ~/.config/tmux/tmux.conf
ln -sf "$DOTFILES_PATH/alacritty.yml" ~/.config/alacritty.yml
ln -sf "$DOTFILES_PATH/.emacs" ~/.emacs
ln -sf "$DOTFILES_PATH/.bashrc" ~/.bashrc
ln -sf "$DOTFILES_PATH/i3_config" ~/.config/i3/config
ln -sf "$DOTFILES_PATH/picom.conf" ~/.config/picom.conf
git clone https://github.com/push0ebp/sig-database ~/FOSS/sig-database
git clone https://github.com/poniponiponiponiponiponiponiponiponi/stuff ~/Projects/stuff
git clone https://github.com/poniponiponiponiponiponiponiponiponi/private ~/Projects/private
#curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
#source "$HOME/.cargo/env"
rustup component add rustfmt
rustup component add clippy
git config --global pager.branch false
git config --global user.name "poniponiponiponiponiponiponiponiponi"
git config --global user.email "[email protected]"
git config --global credential.helper store
git config --global core.editor "emacsclient"