-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
43 lines (35 loc) · 1.07 KB
/
install.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
#!/bin/bash
###########################
#Configuration
###########################
BASEDIR=$(dirname $0)
GIT_USERNAME="ioExpander"
GIT_EMAIL="[email protected]"
#echo $BASEDIR
cd $BASEDIR
BASEDIR=$(pwd)
#Check Installed programs
for PROG in wget zsh vim rg brew fzf gdu tldr zoxide exa; do
which $PROG >/dev/null || {
echo "Please install $PROG"
exit 1
}
done
#Initiate private zshconfig file with current user name
if [ ! -f ~/.zshrc_privateSettings ]; then
echo "DEFAULT_USER=$(whoami)" >~/.zshrc_privateSettings
fi
# configure git
git config --global color.ui true
git config --global credential.helper cache
git config --global credential.helper "cache --timeout=7200"
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global user.name $GIT_USERNAME
git config --global user.email $GIT_EMAIL
# Linking files
ln -fs $BASEDIR/vimrc ~/.vimrc
#Copy Zsh files
ln -fs $BASEDIR/zsh_plugins.txt ~/.zsh_plugins.txt # list of antidote plugins
ln -fs $BASEDIR/zshrc ~/.zshrc