[core] update (#21)

* vim quiet install

* do not set LESS

* gitconfig and envs
This commit is contained in:
Dict Xiong 2022-11-06 14:00:25 +08:00 committed by GitHub
parent b191403798
commit 5b00add073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 7 deletions

View File

@ -1,7 +1,17 @@
[user] [user]
email = me@beardic.cn email = me@beardic.cn
name = Dict Xiong name = Dict Xiong
[core] [core]
editor = vim editor = vim
# test this by `git update-index --test-untracked-cache`
# disable this by setting `GIT_DISABLE_UNTRACKED_CACHE`
untrackedCache = true
[push] [push]
autoSetupRemote = true autoSetupRemote = true
[branch]
# Show most recently changed branches first.
sort = -committerdate
[help]
autocorrect = 1
[init]
defaultBranch = main

View File

@ -1,10 +1,14 @@
# env # env for shell
export TERM="xterm-256color" export TERM="xterm-256color"
export LC_ALL=C.UTF-8 export LC_ALL=C.UTF-8
export LANG=C.UTF-8 export LANG=C.UTF-8
export DOTFILES=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd ) export DOTFILES=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )
export PATH="$PATH:$DOTFILES/scripts" 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 # antigen
if [[ -z "$DFS_NO_WALL" ]]; then if [[ -z "$DFS_NO_WALL" ]]; then

View File

@ -165,9 +165,7 @@ install_vim_vundle(){
fmt_note "installing vim vundle ..." fmt_note "installing vim vundle ..."
git clone https://gitee.com/dictxiong/Vundle.vim "$VIM_VUNDLE" git clone https://gitee.com/dictxiong/Vundle.vim "$VIM_VUNDLE"
fmt_note "initializing vim plugins ..." fmt_note "initializing vim plugins ..."
if [[ -z "$DFS_NO_COMPILE" ]]; then echo | vim +PluginInstall +qall
vim +PluginInstall +qall
fi
fi fi
} }