-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·84 lines (63 loc) · 1.45 KB
/
install
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
#!/bin/bash
DFDIR=`dirname $0 | xargs realpath`
# ---- Functions
link_file () {
if [ -f $DFDIR/$1 ]; then
if [ -f $HOME/$1 ] && [ ! -h $HOME/$1 ]; then
mv $HOME/$1 $HOME/$1.bckp
echo "$HOME/$1 already exists. Will back-up"
fi
ln -s -f $DFDIR/$1 $HOME/$1
else
echo "$DFDIR/$1 does not exist"
fi
}
install () {
sudo pacman --noconfirm --needed -S $1
ec=$?
if [ $ec != 0 ]; then
yay --noconfirm --norebuild --noredownload -S $1
fi
}
# ---- Install dependencies
sudo pacman -Syu
install yay
install wget
install bat
install hub
install tmux
install ngrok
install jq
install xclip
install noto-fonts-emoji
install inotify-tools
install php
install nodejs
install docker
install docker-compose
install firefox
install google-chrome
install slack-desktop
install discord
install phpstorm
install spotify
if [ ! -f $HOME/git-prompt.sh ]; then
echo "Installing git-prompt.sh"
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
fi
if [ ! -f $HOME/git-completion.bash ]; then
echo "Install git-completion.bash"
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
fi
# ---- Back-up and link files
link_file .tmux.conf
link_file .bashrc
link_file .bash_prompt
link_file .bash_aliases
link_file .bash_functions
link_file .gitconfig
link_file .gitignore
# ---- Set up Term preferences
./gnome/load-term-profile
# ---- Init
source $HOME/.bashrc