Remove useless exports and quotes
This commit is contained in:
parent
a4b11b0f79
commit
4e3b4b2cf8
|
@ -4,7 +4,7 @@ function() # Keep local variables in here.
|
|||
############################## Completion ######################################
|
||||
|
||||
zmodload zsh/complist
|
||||
autoload -Uz compinit && compinit -d "${ZSH_CACHE_DIR}/zcompdump"
|
||||
autoload -Uz compinit && compinit -d ${ZSH_CACHE_DIR}/zcompdump
|
||||
|
||||
setopt ALWAYS_TO_END COMPLETE_IN_WORD GLOB_COMPLETE LIST_PACKED
|
||||
|
||||
|
@ -12,7 +12,7 @@ zmodload zsh/zutil
|
|||
zmodload zsh/complist
|
||||
# Configure completions.
|
||||
zstyle ':completion:*' use-cache on
|
||||
zstyle ':completion:*' cache-path "${ZSH_CACHE_DIR}/zcompcache"
|
||||
zstyle ':completion:*' cache-path ${ZSH_CACHE_DIR}/zcompcache
|
||||
zstyle ':completion:*' menu select
|
||||
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':completion:*' completer _extensions _complete _approximate _ignored
|
||||
|
@ -28,8 +28,8 @@ compdef '_dispatch git git' config # git completions for config.
|
|||
autoload -Uz +X bashcompinit && bashcompinit
|
||||
|
||||
############################# History ##########################################
|
||||
export HISTSIZE=50000 # In memory.
|
||||
export SAVEHIST=10000 # On disk.
|
||||
HISTSIZE=50000 # In memory.
|
||||
SAVEHIST=10000 # On disk.
|
||||
# Write command to history file after it is finished, with time and duration.
|
||||
setopt NO_SHARE_HISTORY EXTENDED_HISTORY INC_APPEND_HISTORY_TIME
|
||||
setopt HIST_EXPIRE_DUPS_FIRST HIST_IGNORE_DUPS
|
||||
|
@ -50,11 +50,11 @@ add-zsh-hook zshaddhistory _my_import_history_zshaddhistory
|
|||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=237"
|
||||
|
||||
for plugin in "${(@s/ /)ZSH_PLUGIN_DIST}"; do
|
||||
[[ -n "${plugin}" ]] && source "${plugin}"
|
||||
for plugin in ${(@s/ /)ZSH_PLUGIN_DIST}; do
|
||||
[[ -n ${plugin} ]] && source ${plugin}
|
||||
done
|
||||
unset plugin
|
||||
[[ -n "${ZSH_PLUGIN_SOURCE}" ]] && source "${ZSH_PLUGIN_SOURCE}"
|
||||
[[ -n ${ZSH_PLUGIN_SOURCE} ]] && source ${ZSH_PLUGIN_SOURCE}
|
||||
|
||||
# Fuzzy finder, <https://github.com/junegunn/fzf>.
|
||||
export FZF_CTRL_R_OPTS="--layout=reverse"
|
||||
|
@ -112,17 +112,17 @@ if echoti tsl > /dev/null 2>&1; then
|
|||
function _my_title_preexec() {
|
||||
local _my_jobs_dir
|
||||
print -Pnv _my_jobs_dir "%(1j,%j job%(2j|s|); ,)%~"
|
||||
printf "\e]0;%s: %s; %s\a" "${HOST}" "${1}" "${_my_jobs_dir}"
|
||||
printf "\e]0;%s: %s; %s\a" ${HOST} ${1} ${_my_jobs_dir}
|
||||
}
|
||||
add-zsh-hook preexec _my_title_preexec
|
||||
fi
|
||||
|
||||
# Translate TrueColor to 256 colors if the terminal doesn't support it
|
||||
[[ "${COLORTERM}" == *(truecolor|24bit)* ]] || zmodload zsh/nearcolor
|
||||
[[ ${COLORTERM} == *(truecolor|24bit)* ]] || zmodload zsh/nearcolor
|
||||
|
||||
# emacsclient 27 (TODO: check later versions) needs this for TrueColor
|
||||
if [[ "${TERM#*-}" == "256color" ]] \
|
||||
&& [[ "${COLORTERM}" == *(truecolor|24bit)* ]] \
|
||||
if [[ ${TERM#*-} == "256color" ]] \
|
||||
&& [[ ${COLORTERM} == *(truecolor|24bit)* ]] \
|
||||
&& [[ -f "/usr/share/terminfo/t/${TERM%-*}-direct" ]]; then
|
||||
alias $(command -v emacsclient)="TERM=${TERM%-*}-direct $(command -v emacsclient)"
|
||||
alias $(command -v emacsremote)="TERM=${TERM%-*}-direct $(command -v emacsremote)"
|
||||
|
@ -132,7 +132,7 @@ case ${TERM} in
|
|||
(dumb) # Emacs shells and TRAMP.
|
||||
unsetopt ZLE
|
||||
|
||||
if [[ "${INSIDE_EMACS}" =~ "tramp" ]]; then
|
||||
if [[ ${INSIDE_EMACS} =~ "tramp" ]]; then
|
||||
HISTFILE="/dev/null"
|
||||
fi
|
||||
|
||||
|
@ -152,14 +152,14 @@ case $(hostname) in
|
|||
;;
|
||||
esac
|
||||
|
||||
[[ -f "${ZDOTDIR}"/keys.zsh ]] && source "${ZDOTDIR}"/keys.zsh
|
||||
[[ -f "${ZDOTDIR}"/aliases.zsh ]] && source "${ZDOTDIR}"/aliases.zsh
|
||||
[[ -d "${ZDOTDIR}"/functions ]] && autoload -Uz "${ZDOTDIR}"/functions/*
|
||||
[[ -f "${ZDOTDIR}"/themes/syntax-tastytea.zsh ]] && source "${ZDOTDIR}"/themes/syntax-tastytea.zsh
|
||||
[[ -f ${ZDOTDIR}/keys.zsh ]] && source ${ZDOTDIR}/keys.zsh
|
||||
[[ -f ${ZDOTDIR}/aliases.zsh ]] && source ${ZDOTDIR}/aliases.zsh
|
||||
[[ -d ${ZDOTDIR}/functions ]] && autoload -Uz ${ZDOTDIR}/functions/*
|
||||
[[ -f ${ZDOTDIR}/themes/syntax-tastytea.zsh ]] && source ${ZDOTDIR}/themes/syntax-tastytea.zsh
|
||||
|
||||
zstyle ':vcs_info:*' enable git svn hg # vcs_info_printsys
|
||||
zstyle ':vcs_info:*' check-for-changes true
|
||||
DEFAULT_USER="${DEFAULT_USER:-tastytea}"
|
||||
DEFAULT_USER=${DEFAULT_USER:-tastytea}
|
||||
autoload -U promptinit && promptinit
|
||||
prompt tastytea
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user