From 9d4dd28da6ff79098b73af190a1364a05a4d9180 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Sat, 12 Nov 2022 15:15:59 +0800 Subject: [PATCH] fix bug --- init_debian.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/init_debian.sh b/init_debian.sh index 64a0a3f..a5d6e6e 100644 --- a/init_debian.sh +++ b/init_debian.sh @@ -106,5 +106,19 @@ change_ulimit() { sysctl -p } +#安装vim +install_vim() { + apt-get remove vim-common -y + apt-get install vim -y + sed -i 's/mouse=a/mouse-=a/g' /usr/share/vim/vim*/defaults.vim +} + +# add_lias +add_alias() { + cp ~/.bashrc ~/.bashrc.bak + echo "alias ll='ls -l'" >> ~/.bashrc + source ~/.bashrc +} + #调用函数执行 -init_soft && init_ssh && init_timezone && set_swap && enable_bbr && change_ulimit \ No newline at end of file +init_soft && init_timezone && set_swap && enable_bbr && change_ulimit && install_vim && add_alias \ No newline at end of file