treewide: style (trivia)
This commit is contained in:
parent
f07d2d3b35
commit
bc5e07f76e
@ -17,8 +17,8 @@ __z_alt_ls() {
|
|||||||
case "$n" in
|
case "$n" in
|
||||||
0) : do nothing ;;
|
0) : do nothing ;;
|
||||||
*) z-alt-set-static 'ls|-d .' "$1" "LS_OPTIONS='' " ;;
|
*) z-alt-set-static 'ls|-d .' "$1" "LS_OPTIONS='' " ;;
|
||||||
# 1) z-alt-set-static 'ls|-d .' "$1" "LS_OPTIONS='' " ;;
|
# 1) z-alt-set-static 'ls|-d .' "$1" "LS_OPTIONS='' " ;;
|
||||||
# *) z-alt-set-dynamic 'ls|-d .' "$1" "LS_OPTIONS='' " ;;
|
# *) z-alt-set-dynamic 'ls|-d .' "$1" "LS_OPTIONS='' " ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,8 +34,7 @@ darwin*) alt="gls ${LS_GNU}|ls -G|ls" ;;
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
__z_alt_ls "${alt}"
|
__z_alt_ls "${alt}"
|
||||||
|
unset -f __z_alt_ls
|
||||||
unfunction __z_alt_ls
|
|
||||||
unset alt LS_GNU
|
unset alt LS_GNU
|
||||||
|
|
||||||
[ -n "${LS_COLORS}" ] && zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
[ -n "${LS_COLORS}" ] && zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||||
|
@ -21,7 +21,7 @@ ZSHU_PS[cmd_threshold]=3
|
|||||||
|
|
||||||
__z_cmdtime_precmd() {
|
__z_cmdtime_precmd() {
|
||||||
local t=${EPOCHREALTIME}
|
local t=${EPOCHREALTIME}
|
||||||
# local t=${(%):-%D{%s.%9.}}
|
# local t=${(%):-%D{%s.%9.}}
|
||||||
|
|
||||||
ZSHU_PS[elapsed]=''
|
ZSHU_PS[elapsed]=''
|
||||||
(( ${+ZSHU_PS[cmd_ts]} )) || return
|
(( ${+ZSHU_PS[cmd_ts]} )) || return
|
||||||
@ -41,7 +41,7 @@ __z_cmdtime_precmd() {
|
|||||||
|
|
||||||
__z_cmdtime_preexec() {
|
__z_cmdtime_preexec() {
|
||||||
ZSHU_PS[cmd_ts]=${EPOCHREALTIME}
|
ZSHU_PS[cmd_ts]=${EPOCHREALTIME}
|
||||||
# ZSHU_PS[cmd_ts]=${(%):-%D{%s.%9.}}
|
# ZSHU_PS[cmd_ts]=${(%):-%D{%s.%9.}}
|
||||||
}
|
}
|
||||||
|
|
||||||
add-zsh-hook precmd __z_cmdtime_precmd
|
add-zsh-hook precmd __z_cmdtime_precmd
|
||||||
|
@ -6,8 +6,8 @@ typeset -A ZSHU_FB_KEYS
|
|||||||
if z-ti-test smkx rmkx ; then
|
if z-ti-test smkx rmkx ; then
|
||||||
zle-line-init() { emulate -L zsh ; echoti smkx ; }
|
zle-line-init() { emulate -L zsh ; echoti smkx ; }
|
||||||
zle-line-finish() { emulate -L zsh ; echoti rmkx ; }
|
zle-line-finish() { emulate -L zsh ; echoti rmkx ; }
|
||||||
# zle-line-init() { echoti smkx ; }
|
# zle-line-init() { echoti smkx ; }
|
||||||
# zle-line-finish() { echoti rmkx ; }
|
# zle-line-finish() { echoti rmkx ; }
|
||||||
zle -N zle-line-init
|
zle -N zle-line-init
|
||||||
zle -N zle-line-finish
|
zle -N zle-line-finish
|
||||||
fi
|
fi
|
||||||
@ -74,7 +74,7 @@ z-bind () {
|
|||||||
done
|
done
|
||||||
shift
|
shift
|
||||||
|
|
||||||
# sequence="$1"
|
# sequence="$1"
|
||||||
widget="$2"
|
widget="$2"
|
||||||
|
|
||||||
local -Ua keys
|
local -Ua keys
|
||||||
|
Loading…
Reference in New Issue
Block a user