diff --git a/.config/zsh/alias/ls.zsh b/.config/zsh/alias/ls.zsh index 46d3b95..713f0eb 100644 --- a/.config/zsh/alias/ls.zsh +++ b/.config/zsh/alias/ls.zsh @@ -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}" diff --git a/.config/zsh/lib/alternatives.zsh b/.config/zsh/lib/alternatives.zsh index 51669bb..2cbd2e9 100644 --- a/.config/zsh/lib/alternatives.zsh +++ b/.config/zsh/lib/alternatives.zsh @@ -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" diff --git a/.config/zsh/lib/cmdtime.zsh b/.config/zsh/lib/cmdtime.zsh index 258013c..4c79751 100644 --- a/.config/zsh/lib/cmdtime.zsh +++ b/.config/zsh/lib/cmdtime.zsh @@ -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 diff --git a/.config/zsh/rc/keyboard.zsh b/.config/zsh/rc/keyboard.zsh index 1df5200..e357ca0 100644 --- a/.config/zsh/rc/keyboard.zsh +++ b/.config/zsh/rc/keyboard.zsh @@ -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