-
Notifications
You must be signed in to change notification settings - Fork 2
/
install
executable file
·83 lines (70 loc) · 1.72 KB
/
install
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
#!/bin/bash
set -ux
git submodule update --init --recursive
SCRIPT_DIR=$(cd $(dirname $0); pwd)
# install packages
packagelist=(
"build-essential"
"git"
"vim"
"ibus-mozc"
"tmux"
"fish"
"htop"
"cgdb"
"guake"
"nvim"
"terminator"
"curl"
)
echo "start apt-get install apps..."
for list in ${packagelist[@]}; do
sudo apt-get install -y ${list}
done
sudo apt-get update
sudo apt-get upgrade
# fish
mkdir -p ~/.config/fish/functions
# my-theme
ln -s ${SCRIPT_DIR}/fish_prompt.fish ~/.config/fish/functions
ln -s ${SCRIPT_DIR}/informative_git_prompt/__informative_git_prompt.fish ~/.config/fish/functions
# fisherman
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisherman
fisherman_list=(
"z"
"gitignore"
"tsu-nera/fish-peco_recentd"
"oh-my-fish/plugin-balias"
"oh-my-fish/plugin-peco"
"edc/bass"
)
echo "start fisherman install apps..."
for list in ${packagelist[@]}; do
fisher ${list}
done
if [ -f ~/.config/fish/functions/fish_user_key_bindings.fish ];then
cp fish_user_key_bindings.fish fish_user_key_bindings.fish.bak
rm fish_user_key_bindings.fish
fi
ln -s ${SCRIPT_DIR}/fish_user_key_bindings.fish ~/.config/fish/functions/
# git
ln -s ${SCRIPT_DIR}/.gitconfig ~/.gitconfig
# vim
ln -s ${SCRIPT_DIR}/.vimrc_minimum ~/.vimrc
# nvim
# ln -s ${SCRIPT_DIR}/nvim ~/.config/nvim
#
# tmux
ln -s ${SCRIPT_DIR}/.tmux.conf ~/.tmux.conf
# terminator
ln -s ${SCRIPT_DIR}/terminator_config ~/.config/terminator/config
# bash
if [ ! -f ~/.bashrc.bak ];then
cp ~/.bashrc ~/.bashrc.bak
fi
cp ~/.bashrc.bak ~/.bashrc
echo "#-------my setting--------" >> ~/.bashrc
echo "source $SCRIPT_DIR/.bashrc" >> ~/.bashrc
fzf
ln -s ${SCRIPT_DIR}/fzf ~/.fzf
yes | ~/.fzf/install