diff --git a/.rc/.vimrc b/.rc/.vimrc index 5711490..e59d6ee 100644 --- a/.rc/.vimrc +++ b/.rc/.vimrc @@ -6,25 +6,28 @@ set softtabstop=4 syntax enable syntax on set cursorline - + if &term=="xterm" - set t_Co=8 - set t_Sb=^[[4%dm - set t_Sf=^[[3%dm + set t_Co=8 + set t_Sb=^[[4%dm + set t_Sf=^[[3%dm endif - + "indent based on file type filetype indent plugin on filetype on - + set autoindent set smartindent set ruler - + "show command in bottom set showcmd - + set shiftwidth=4 set hlsearch set encoding=utf-8 set fileencodings=ucs-bom,utf-8,cp936 +set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 +set termencoding=utf-8 +set encoding=utf-8 diff --git a/shell/useful.sh b/shell/useful.sh index 0cc48f8..fdc13c8 100644 --- a/shell/useful.sh +++ b/shell/useful.sh @@ -17,3 +17,12 @@ grep -r "Redis" . # 查找文件 sudo find / -name erl_crash.dump + +# 创建用户 +useradd -m USERNAME +passwd USERNAME + +# change zsh +chsh -s $(which zsh) +# You may not change the shell for 'popkit' +sudo usermod -s /bin/zsh popkit