reconstruct dir
This commit is contained in:
20
zsh/settings/command_history.sh
Normal file
20
zsh/settings/command_history.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
# Command History related settings
|
||||
HISTFILE=$HOME/.zsh_history
|
||||
HISTSIZE=50000
|
||||
SAVEHIST=10000
|
||||
setopt extended_history # record timestamp of command in HISTFILE
|
||||
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
|
||||
setopt hist_ignore_dups # ignore duplicated commands history list
|
||||
setopt hist_ignore_space # ignore commands that start with space
|
||||
setopt hist_verify # show command with history expansion to user before running it
|
||||
setopt share_history # share command history data
|
||||
# setopt append_history # 退出时追加到历史文件
|
||||
# setopt inc_append_history # 命令执行后立即写入历史文件
|
||||
# setopt share_history # 在多个终端间共享历史
|
||||
# setopt hist_ignore_dups # 忽略重复的命令
|
||||
# setopt hist_reduce_blanks # 合并连续的空命令
|
||||
# setopt hist_verify # 通过 fc 编辑历史命令后再执行
|
||||
# setopt extended_history # 记录时间戳
|
||||
# setopt hist_expire_dups_first # 先删除重复的命令再根据大小删除
|
||||
# setopt hist_find_no_dups # 搜索历史时忽略重复项
|
||||
# setopt hist_save_no_dups # 保存历史时忽略重复项
|
||||
3
zsh/settings/language_evnironment.sh
Normal file
3
zsh/settings/language_evnironment.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
# Language Environment
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_ALL=C.UTF-8
|
||||
21
zsh/settings/useful_exports.sh
Normal file
21
zsh/settings/useful_exports.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
# Preferred editor for local and remote sessions
|
||||
if [[ -n $SSH_CONNECTION ]]; then
|
||||
if (( $+commands[helix] )); then
|
||||
export EDITOR='helix'
|
||||
elif (( $+commands[nvim] )); then
|
||||
export EDITOR='nvim'
|
||||
else
|
||||
export EDITOR='vim'
|
||||
fi
|
||||
else
|
||||
if (( $+commands[helix] )); then
|
||||
export EDITOR='helix'
|
||||
elif (( $+commands[nvim] )); then
|
||||
export EDITOR='nvim'
|
||||
else
|
||||
export EDITOR='vim'
|
||||
fi
|
||||
fi
|
||||
|
||||
# operating system
|
||||
export OS=$(uname -s)
|
||||
Reference in New Issue
Block a user