1313# - -h, --help print help information.
1414# - -no_git-config do not customize git.
1515# - -no_vim-config do not use customize .vimrc config file (from ./config/.vimrc).
16+ # - -no_tmux-config do not use customize .tmux.conf file (from ./config/.tmux.conf).
1617# - -no_chewing do not install Taiwanese typing method.
1718# - -no_extra-packages do not install all the extra-packages.
1819# -
1920# - =========== extra package options ===========
2021# - --no_ssh-server do not install openssh-server.
21- # - --no_screen do not install screen.
2222# - --no_pip3 do not install python3-pip.
2323# -
2424# - EXAMPLES
@@ -42,10 +42,10 @@ function show_script_help(){
4242all_accept=0
4343git_config=1
4444vim_config=1
45+ tmux_config=1
4546chewing=1
4647extra_packages=1
4748ssh_server=1
48- screen=1
4949pip3=1
5050if [ " $# " -gt 0 ]; then
5151 while [ " $# " -gt 0 ]; do
@@ -70,6 +70,11 @@ if [ "$#" -gt 0 ]; then
7070 vim_config=0
7171 shift 1
7272 ;;
73+ # Not use customize .tmux.conf file (from ./config/.tmux.conf).
74+ " -no_tmux-config" )
75+ tmux_config=0
76+ shift 1
77+ ;;
7378 # Not install Taiwanese typing method
7479 " -no_chewing" )
7580 chewing=0
@@ -85,11 +90,6 @@ if [ "$#" -gt 0 ]; then
8590 ssh_server=0
8691 shift 1
8792 ;;
88- # Not install screen
89- " --no_screen" )
90- screen=0
91- shift 1
92- ;;
9393 # Not install python3-pip
9494 " --no_pip3" )
9595 pip3=0
@@ -102,7 +102,7 @@ if [ "$#" -gt 0 ]; then
102102 done
103103fi
104104declare -A Extra_package_dict
105- Extra_package_dict=([openssh-server]=$ssh_server [screen]= $screen [ python3-pip]=$pip3 )
105+ Extra_package_dict=([openssh-server]=$ssh_server [python3-pip]=$pip3 )
106106
107107function Echo_Color(){
108108 case $1 in
@@ -149,7 +149,7 @@ function Ask_yn(){
149149# ====================================================
150150sudo apt update
151151sudo apt upgrade
152- sudo apt install -y git-all vim curl wget make
152+ sudo apt install -y git-all vim curl wget make tmux
153153
154154if [ $git_config = 1 ]; then
155155 # git: config global usr information
@@ -209,10 +209,18 @@ if [ $git_config = 1 ]; then
209209fi
210210
211211if [ $vim_config = 1 ]; then
212- Ask_yn " Do you want to use customize VIM editor setting? $( Echo_Color r ' (If you do this, the old ~/.vimrc will remove it.)' ) " ; result=$?
212+ Ask_yn " Do you want to use customized VIM editor setting? $( Echo_Color r ' (If you do this, the old ~/.vimrc will remove it.)' ) " ; result=$?
213213 if [ $result = 1 ]; then
214214 cp ./config/.vimrc ~ /
215- Echo_Color g " Completed VIM editor customize setting"
215+ Echo_Color g " Completed VIM editor customized setting"
216+ fi
217+ fi
218+
219+ if [ $tmux_config = 1 ]; then
220+ Ask_yn " Do you want to use customized tmux configuration? $( Echo_Color r ' (If you do this, the old ~/.tmux.conf will remove it.)' ) " ; result=$?
221+ if [ $result = 1 ]; then
222+ cp ./config/.tmux.conf ~ /
223+ Echo_Color g " Completed customized tmux configuration"
216224 fi
217225fi
218226
0 commit comments