forked from fcsonline/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·48 lines (39 loc) · 976 Bytes
/
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
44
45
46
47
48
#!/bin/bash
message ()
{
RCOLOR=$(( ( RANDOM % 6 ) + 1 ))
echo -e "Installing \033[1;3${RCOLOR}m$1\033[0m scripts..."
}
# TMUX
message "Tmux"
ln -snf "${PWD}/tmux/tmux.conf" ~/.tmux.conf
ln -snf "${PWD}/tmux/plugins" ~/.tmux-plugins
# BASH
message "Bash"
ln -snf "${PWD}/bash/bashrc" ~/.bashrc
ln -snf "${PWD}/bash/bash_profile" ~/.bash_profile
ln -snf "${PWD}/bash/bash_aliases" ~/.bash_aliases
ln -snf "${PWD}/bash/inputrc" ~/.inputrc
# BASH FZF
message "FZF"
rm -rf ~/.fzf
git clone -q https://github.com/junegunn/fzf.git ~/.fzf
yes | ~/.fzf/install > /dev/null 2>&1
# GIT
message "Git"
ln -sf "${PWD}/git/gitconfig" ~/.gitconfig
# VIM
message "Vim"
ln -snf "${PWD}/vimrc" ~/.vimrc
ln -snf "${PWD}/vim" ~/.vim
mkdir -p ~/.vim/{tmpdir,undodir}
chmod 700 ~/.vim/{tmpdir,undodir}
# NOTES
message "Notes"
mkdir -p ~/.notes
pushd "${PWD}"
git submodule init > /dev/null 2>&1
git submodule update > /dev/null 2>&1
popd
# Execute it immediately
source ~/.bashrc