-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·57 lines (38 loc) · 1.5 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
#!/bin/sh
# Gerard Marull-Paretas <[email protected]>
# SPDX-License-Identifier: MIT
set -e
# git --------------------------------------------------------------------------
ln -s .gitconfig $HOME/.gitconfig
# tmux -------------------------------------------------------------------------
ln -s .tmux.conf $HOME/.tmux.conf
# starship ---------------------------------------------------------------------
STARSHIP_CONF=$HOME/.config
mkdir -p $STARSHIP_CONF
ln -s starship.toml $STARSHIP_CONF/starship.toml
# zsh --------------------------------------------------------------------------
ZSH_PLUGINS=$HOME/.zsh
mkdir $ZSH_PLUGINS
cd $ZSH_PLUGINS
git clone --depth=1 [email protected]:zsh-users/zsh-syntax-highlighting.git
cd -
ln -s .zshrc $HOME/.zshrc
# vim --------------------------------------------------------------------------
VIM_PACK=$HOME/.vim/pack/$USER
VIM_PACK_START=$VIM_PACK/start
VIM_PACK_OPT=$VIM_PACK/opt
mkdir -p $VIM_PACK_START
cd $VIM_PACK_START
git clone --depth=1 [email protected]:vim-airline/vim-airline.git
git clone --depth=1 [email protected]:preservim/nerdcommenter.git
git clone --depth=1 [email protected]:editorconfig/editorconfig-vim.git
cd -
mkdir -p $VIM_PACK_OPT
cd $VIM_PACK_OPT
git clone --depth=1 [email protected]:altercation/vim-colors-solarized.git
cd -
ln -s .vimrc $HOME/.vimrc
# GNOME terminal ---------------------------------------------------------------
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
dconf load /org/gnome/terminal/legacy/profiles:/ < gnome-terminal-profiles.dconf
fi