1
0

treewide: style (trivia)

This commit is contained in:
Konstantin Demin 2021-10-01 10:14:53 +03:00
parent f07d2d3b35
commit bc5e07f76e
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6
4 changed files with 11 additions and 12 deletions

View File

@ -17,8 +17,8 @@ __z_alt_ls() {
case "$n" in
0) : do nothing ;;
*) 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='' " ;;
# 1) z-alt-set-static 'ls|-d .' "$1" "LS_OPTIONS='' " ;;
# *) z-alt-set-dynamic 'ls|-d .' "$1" "LS_OPTIONS='' " ;;
esac
}
@ -34,8 +34,7 @@ darwin*) alt="gls ${LS_GNU}|ls -G|ls" ;;
esac
__z_alt_ls "${alt}"
unfunction __z_alt_ls
unset -f __z_alt_ls
unset alt LS_GNU
[ -n "${LS_COLORS}" ] && zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"

View File

@ -17,9 +17,9 @@ z-alt-find() {
c=$(which "${a[1]}")
[ -z "$c" ] && continue
# r=$(readlink -f "$c" 2>/dev/null)
# [ -z "$r" ] && continue
# a[1]="$r"
# r=$(readlink -f "$c" 2>/dev/null)
# [ -z "$r" ] && continue
# a[1]="$r"
if [ -n "$2" ] ; then
t="$a $2"

View File

@ -21,7 +21,7 @@ ZSHU_PS[cmd_threshold]=3
__z_cmdtime_precmd() {
local t=${EPOCHREALTIME}
# local t=${(%):-%D{%s.%9.}}
# local t=${(%):-%D{%s.%9.}}
ZSHU_PS[elapsed]=''
(( ${+ZSHU_PS[cmd_ts]} )) || return
@ -41,7 +41,7 @@ __z_cmdtime_precmd() {
__z_cmdtime_preexec() {
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

View File

@ -6,8 +6,8 @@ typeset -A ZSHU_FB_KEYS
if z-ti-test smkx rmkx ; then
zle-line-init() { emulate -L zsh ; echoti smkx ; }
zle-line-finish() { emulate -L zsh ; echoti rmkx ; }
# zle-line-init() { echoti smkx ; }
# zle-line-finish() { echoti rmkx ; }
# zle-line-init() { echoti smkx ; }
# zle-line-finish() { echoti rmkx ; }
zle -N zle-line-init
zle -N zle-line-finish
fi
@ -74,7 +74,7 @@ z-bind () {
done
shift
# sequence="$1"
# sequence="$1"
widget="$2"
local -Ua keys