From 5b00add07309d98925aea9aad0c69949d10d57a0 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sun, 6 Nov 2022 14:00:25 +0800 Subject: [PATCH] [core] update (#21) * vim quiet install * do not set LESS * gitconfig and envs --- .gitconfig2 | 14 ++++++++++++-- .zshrc2 | 8 ++++++-- install.sh | 4 +--- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.gitconfig2 b/.gitconfig2 index 6a933f9..ab99553 100644 --- a/.gitconfig2 +++ b/.gitconfig2 @@ -1,7 +1,17 @@ [user] - email = me@beardic.cn - name = Dict Xiong + email = me@beardic.cn + name = Dict Xiong [core] editor = vim + # test this by `git update-index --test-untracked-cache` + # disable this by setting `GIT_DISABLE_UNTRACKED_CACHE` + untrackedCache = true [push] autoSetupRemote = true +[branch] + # Show most recently changed branches first. + sort = -committerdate +[help] + autocorrect = 1 +[init] + defaultBranch = main \ No newline at end of file diff --git a/.zshrc2 b/.zshrc2 index 14c685c..85fdc1e 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -1,10 +1,14 @@ -# env +# env for shell export TERM="xterm-256color" export LC_ALL=C.UTF-8 export LANG=C.UTF-8 export DOTFILES=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd ) export PATH="$PATH:$DOTFILES/scripts" -export LESS="-N" +export EDITOR='vim' +# env for apps +export PYTHONIOENCODING='UTF-8' +export GPG_TTY=$(tty) +export LESS_TERMCAP_md=$'\E[01;33m' # antigen if [[ -z "$DFS_NO_WALL" ]]; then diff --git a/install.sh b/install.sh index db979ec..5ac20c8 100755 --- a/install.sh +++ b/install.sh @@ -165,9 +165,7 @@ install_vim_vundle(){ fmt_note "installing vim vundle ..." git clone https://gitee.com/dictxiong/Vundle.vim "$VIM_VUNDLE" fmt_note "initializing vim plugins ..." - if [[ -z "$DFS_NO_COMPILE" ]]; then - vim +PluginInstall +qall - fi + echo | vim +PluginInstall +qall fi }