mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 10:47:00 +08:00
[core] update (#21)
* vim quiet install * do not set LESS * gitconfig and envs
This commit is contained in:
parent
b191403798
commit
5b00add073
10
.gitconfig2
10
.gitconfig2
|
@ -3,5 +3,15 @@
|
||||||
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
|
8
.zshrc2
8
.zshrc2
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user