-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·43 lines (34 loc) · 968 Bytes
/
setup.sh
File metadata and controls
executable file
·43 lines (34 loc) · 968 Bytes
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
#!/usr/bin/env bash
# Install neovim
# brew install neovim
# Install vim-plug
# curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
# https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
CWD="$(pwd)"
# printf
source ./message
link() {
# Force create/replace the symlink.
ln -fs "${CWD}/${1}" "${HOME}/${2}"
}
copy_files() {
#link "bashrc" ".bashrc"
#link "bash_profile" ".bash_profile"
#link "bash_prompt" ".bash_prompt"
#link "bash_exports" ".bash_exports"
#link "bash_aliases" ".bash_aliases"
link "gitconfig" ".gitconfig"
link "gitignore_global" ".gitignore"
link "vimrc" ".vimrc"
link "zshrc" ".zshrc"
link "tmux.conf" ".tmux.conf"
e_success "Dotfiles update complete!"
}
seek_confirmation "Warning: This step may overwrite your existing dotfiles."
if is_confirmed; then
copy_files
source "${HOME}/.bash_profile"
else
printf "Aborting...\n"
exit 1
fi