-
Notifications
You must be signed in to change notification settings - Fork 4
/
arch.sh
executable file
·95 lines (73 loc) · 3.45 KB
/
arch.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
90
91
92
93
94
95
#!/bin/bash
echo "Switch packages finder to Brazil..."
sudo pacman-mirrors -ic Brazil
echo "Installing basic applications..."
sudo pacman -Syu git vim wget curl copyq unzip xclip ncdu sxhkd flameshot zsh
#ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# sxhkd: add autostart script -> /usr/bin/sxhkd
# fusmua: add autostart script -> /.conf/fusuma/fusuma.sh
echo "Installing yay..."
git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si && cd .. && rm -fr yay
echo "Installing fun applications..."
sudo yay -S fortune-mod cowsay
echo "Installing dev applications..."
sudo yay -Syu nodejs npm albert xdotool ripgrep diff-so-fancy tree redis postgresql alacritty tmux ngrok startship git-extras
echo "Installing personal applications..."
sudo yay -Syu autojump tldr exa bat prettyping libsecret gnome-keyring aur/jumpapp-git
echo "Installing system applications..."
sudo yay -Syu pulseaudio pavucontrol # audio control
# store: postman, vscode, chrome, dbeaver, mailspring
# manual: jetbrains font
# https://www.jetbrains.com/lp/mono/#how-to-install
# tutorials
# docker: https://linuxconfig.org/manjaro-linux-docker-installation
# postgres: https://lobotuerto.com/blog/how-to-install-postgresql-in-manjaro-linux/
# ulauncher
# https://github.com/Ulauncher/ulauncher-emoji
# https://github.com/pwnyprod/ulauncher-ipcopy
# https://github.com/friday/ulauncher-clipboard
# https://github.com/episode6/ulauncher-system-management-direct
# https://github.com/isacikgoz/ukill
# https://github.com/ulauncher/ulauncher-timer
echo "Installing broot..."
cd /usr/local/bin && sudo wget -rnd https://dystroy.org/broot/download/x86_64-linux/broot && sudo chmod +x broot && cd -
echo "Installing fzf..."
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && ~/.fzf/install
echo "Installing zsh interactive..."
git clone https://github.com/changyuheng/zsh-interactive-cd.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-interactive
echo "Installing zsh syntax highlight..."
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/paulirish/git-open.git $ZSH_CUSTOM/plugins/git-open
git clone https://github.com/wfxr/forgit.git "$ZSH_CUSTOM/plugins/forgit"
git clone https://github.com/Aloxaf/fzf-tab "$ZSH_CUSTOM/plugins/fzf-tab"
npm install --global git-open
echo "Setup my personal dotfiles..."
git clone https://github.com/jonaselan/dotfiles.git ~/.smpc
echo "Creating folders..."
mkdir ~/.config/alacritty/
mkdir ~/.config/sxhkd/
mkdir ~/.config/fusuma/
# src:dest
# "$HOME/.smpc/terminator:$HOME/.config/terminator/config"
link_files=(
"$HOME/.smpc/.zshrc:$HOME/.zshrc"
"$HOME/.smpc/.vimrc:$HOME/.vimrc"
"$HOME/.smpc/.tmux:$HOME/.tmux.conf"
"$HOME/.smpc/.gitconfig:$HOME/.gitconfig"
"$HOME/.smpc/sxhkdrc:$HOME/.config/sxhkd/sxhkdrc"
"$HOME/.smpc/fusuma.yml:$HOME/.config/fusuma/config.yml"
"$HOME/.smpc/startship.toml:$HOME/.config/startship.toml"
"$HOME/.smpc/alacritty.yml:$HOME/.config/alacritty/alacritty.yml"
)
# Link files
info 'Linking dotfiles'
for lf in "${link_files[@]}"
do
src="$(echo -n $lf | cut -d':' -f1)"
dest="$(echo -n $lf | cut -d':' -f2)"
ln -sTf $src $dest
# explicit simbolyc link
stat -c '%N' "$(echo -n $lf | cut -d':' -f2)"
done