Skip to content

Commit e952178

Browse files
committed
fix: LC error
1 parent a981058 commit e952178

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

zsh/.config/zsh/alias.zsh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ alias cp="cp -i"
1212
alias rm="rm -i" # prompt once
1313
# alias rm="trash-put -v -- "
1414
alias vi="vim "
15+
alias vim="nvim"
1516
alias vzsh="vim ~/.zshrc"
1617
alias szsh="source ~/.zshrc"
1718
alias vvim="vim ~/.vim/vimrc"
@@ -28,7 +29,7 @@ alias glog="git log --oneline --graph --all --abbrev"
2829
alias truecolor="curl -s https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh | bash"
2930

3031
# Additional custome software command
31-
alias ls='exa '
32+
alias ls='eza '
3233
alias la='ls -lah'
3334
alias brightness='sudo ddcutil setvcp 10 '
3435
alias winproxy="proxychains4 -f ~/.config/proxy/winproxy.conf "

zsh/.config/zsh/zsh.zsh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ ZSH_THEME="agnoster"
1515
HYPHEN_INSENSITIVE="true"
1616

1717
# 自动更新mode设置
18-
# zstyle ':omz:update' mode disabled # disable automatic updates
19-
# zstyle ':omz:update' mode auto # update automatically without asking
20-
zstyle ':omz:update' mode reminder # just remind me to update when it's time
18+
zstyle ':omz:update' mode reminder
2119

2220
# Uncomment the following line to change how often to auto-update (in days).
2321
# zstyle ':omz:update' frequency 13
@@ -39,7 +37,7 @@ DISABLE_UNTRACKED_FILES_DIRTY="true"
3937

4038
# 改变命令执行时间的显示格式
4139
# 可选: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
42-
# HIST_STAMPS="mm/dd/yyyy"
40+
HIST_STAMPS="yyyy-mm-dd"
4341

4442
# 自定义custom文件夹, 不修改则默认使用 $ZSH/custom
4543
# ZSH_CUSTOM=/path/to/new-custom-folder

zsh/.zshrc

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# ---------------------------------------------------------------
2+
# 系统基础设置
3+
# ---------------------------------------------------------------
4+
5+
# You may need to manually set your language environment
6+
export LC_ALL=C.UTF-8
7+
export LANG=C.UTF-8
8+
9+
# Preferred editor for local and remote sessions
10+
if [[ -n $SSH_CONNECTION ]]; then
11+
export EDITOR='vim'
12+
else
13+
export EDITOR='vim'
14+
fi
15+
116
# ---------------------------------------------------------------
217
# Util
318
# ---------------------------------------------------------------
@@ -39,19 +54,6 @@ fi
3954

4055
source $HOME/.config/zsh/zsh.zsh
4156

42-
# ---------------------------------------------------------------
43-
# 系统基础设置
44-
# ---------------------------------------------------------------
45-
46-
# You may need to manually set your language environment
47-
export LANG=en_US.UTF-8
48-
49-
# Preferred editor for local and remote sessions
50-
if [[ -n $SSH_CONNECTION ]]; then
51-
export EDITOR='vim'
52-
else
53-
export EDITOR='vim'
54-
fi
5557

5658
# ---------------------------------------------------------------
5759
# 环境变量 PATH
@@ -85,5 +87,4 @@ source $HOME/.config/zsh/alias.zsh
8587
source <(fzf --zsh)
8688

8789
# 加载atuin
88-
source ~/.atuin/bin/env
8990
eval "$(atuin init zsh)"

0 commit comments

Comments
 (0)