-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·71 lines (53 loc) · 1.56 KB
/
install
File metadata and controls
executable file
·71 lines (53 loc) · 1.56 KB
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
#!/bin/bash
set -e
BASE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
BASE_DIR_NAME=`basename "$BASE"`
if [ -d $BASE/../$BASE_DIR_NAME"_private" ]; then
BASE_PRIVATE=$BASE/../$BASE_DIR_NAME"_private"
fi
source $BASE/functions
link_configs $BASE
if [ -n "$BASE_PRIVATE" ]; then
link_configs $BASE_PRIVATE
fi
mkdir -pv ~/bin
link_executables $BASE
if [ -n "$BASE_PRIVATE" ]; then
link_executables $BASE_PRIVATE
fi
mkdir -pv ~/aliases
link_aliases $BASE
if [ -n "$BASE_PRIVATE" ]; then
link_aliases $BASE_PRIVATE
fi
if ! which tmux && which tmux-next &> /dev/null; then
echo '#!/bin/sh' > ~/bin/tmux
echo 'tmux-next' >> ~/bin/tmux
chmod +x ~/bin/tmux
fi
# ASDF manager
if [ ! -d ~/.asdf ]; then
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch master
fi
if [ ! -d ~/.zgen ]; then
git clone https://github.com/tarjoilija/zgen.git ~/.zgen
fi
mkdir -p ~/.zshrc.d
cp $BASE/zshrc.d/* ~/.zshrc.d/
# Install Powerline fonts
curl -L https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf > /tmp/PowerlineSymbols.otf
curl -L https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf > /tmp/10-powerline-symbols.conf
mkdir -p ~/.fonts/
mv /tmp/PowerlineSymbols.otf ~/.fonts/
if which fc-cache &> /dev/null; then
fc-cache -vf ~/.fonts/
fi
mkdir -p ~/.config/fontconfig/conf.d/
mv /tmp/10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
if which rtorrent &> /dev/null; then
# Rtorrent folders
mkdir -p ~/torrents/downloads
mkdir -p ~/torrents/watch
mkdir -p ~/torrents/session
fi
$BASE/install-vim