forked from balsama/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·100 lines (76 loc) · 1.85 KB
/
setup.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
96
97
98
99
#!/bin/bash
echo "
|---------------------------------------------|
| ___ ___ _____ ________ __ __ __ |
| / \/___\/__ \/ __\_ \/ / /__\/ _\ |
| / /\ // // / /\/ _\ / /\/ / /_\ \ \ |
| / /_// \_// / / / / /\/ /_/ /___//__ _\ \ |
|/___,'\___/ \/ \/ \____/\____/\__/ \__/ |
|---------------------------------------------|
Processing ...
"
# Setup directories
dir=`pwd`
config="$dir/.config"
nvimConfig="$dir/.config/nvim"
localDir="$HOME/.local"
localShare="$HOME/.local/share"
font="$HOME/.local/share/fonts"
pictures="$HOME/Pictures"
wallpappers="$HOME/Pictures/Wallpappers"
echo "$config"
echo "$nvimConfig"
echo "$localDir"
echo $HOME
if [ ! -d "$localDir" ]; then
mkdir $localDir
fi
if [ ! -d "$localShare" ]; then
mkdir $localShare
fi
if [ ! -d "$config" ]; then
mkdir $config
fi
if [ ! -d "$pictures" ]; then
pictures="$HOME/Images"
if [ ! -d "$pictures" ]; then
pictures="$HOME/Pictures"
mkdir $pictures
fi
fi
# Install vim configuration
ln -s $dir/nvim $HOME/.config/nvim
# Install tmux configuration
ln -s $dir/tmux/conf $HOME/.tmux.conf
# Install zsh configuration
ln -s $dir/zshrc $HOME/.zshrc
# Install git configuration
ln -s $dir/git/gitconfig $HOME/.gitconfig
ln -s $dir/git/gitignore $HOME/.gitignore
# Install ag configuration
ls -s $dir/agignore $HOME/.agignore
# Install fonts
if [ -d "$font" ]; then
rm -rf $font
fi
ln -s $dir/font $font
# Install wallpappers
ln -s $dir/wallpapper $wallpappers
# Install ctags configuration
ln -s $dir/ctags $HOME/.ctags
# Install yaourt
sudo pacman -S yaourt
echo "Configuration and yaourt has been installed :-°"
echo ""
echo "You can add some packages and start using them:"
echo ". docker"
echo ". nvim"
echo ". node"
echo ". zsh"
echo ". tmux"
echo ". sylversearcher"
echo ". google-chrome"
echo ". albert"
echo ". deepin-terminal"
echo "..."
echo "Bye °-O"