print -l $buffer[[ -e $buffer[-1] ]] && {vim -p $buffer[-1]return}buffer=$(type $1)buffer=${buffer#$1*function from }if [[ -e "$buffer" ]] {vim +/^$1\( -p "$buffer"} elif [[ "$buffer" == *"is an alias for"* ]] {vim +/^alias\ "$1"= -p ~/.zshrc}}...
arith-eval-echo() { LBUFFER="${LBUFFER}echo \$(( " RBUFFER=" ))$RBUFFER" } zle -N arith-eval-echo bindkey "^[[11~" arith-eval-echo #}}} ###{{{ function timeconv { date -d @$1 +"%Y-%m-%d %T" } # }}} zmodload zsh/mathfunc autoload -U zsh-mime-setup zsh-mime...
arith-eval-echo() { LBUFFER="${LBUFFER}echo \$((" RBUFFER="))$RBUFFER" } zle -N arith-eval-echo bindkey"^[[11~"arith-eval-echo #}}} ###{{{ functiontimeconv { date -d @$1+"%Y-%m-%d %T"} #}}} zmodload zsh/mathfunc autoload -U zsh-mime-setup zsh-mime-setup setop...
LBUFFER="${LBUFFER}echo \$(( " RBUFFER=" ))$RBUFFER" } zle -N arith-eval-echo bindkey "^[[11~" arith-eval-echo#}}}###{{{function timeconv { date -d @$1 +"%Y-%m-%d %T" }# }}}## END OF FILE ### vim:filetype=zsh foldmethod=marker autoindent expandtab shiftwidth=4...
eval$color='%{$fg[${(L)color}]%}' (( count =$count+ 1 )) done FINISH="%{$terminfo[sgr0]%}" #}}} #命令提示符 RPROMPT=$(echo"REDFINISH") PROMPT=$(echo"CYANYELLOW%M:GREEN_YELLOW>$FINISH") #PROMPT=(echo"BLUE%M$GREEN%/ ...
ranger (niziL) - provide prompt element for ranger. Shows current RANGER_LEVEL, displaying nothing when the environment variable is unset, something when it is equals to 1, and something else when it is greater than 1. ranger (rc2dev) - Integrates zsh-z into ranger. ranger-autojump - Adds...
When you hitENTER, the next prompt appears instantly. With Powerlevel10k there is no prompt lag. If you install Cygwin on Raspberry Pi,cdinto a Linux Git repository and activate enough prompt segments to fill four prompt lines on both sides of the screen... wait, that's just crazy and ...
#compdef cd _cd() { if [[ "$LBUFFER" =~ "cd \.\.$" ]]; then reply=("cd ..") fi } 保存并关闭文件。 回到终端,重新加载zsh配置文件: 代码语言:txt 复制 source ~/.zshrc 现在,当你在zsh中输入'cd ..'并按下Tab键时,它应该能够自动补全为'cd ..'命令。 注意:以上步骤是为了在...
emulate -L zsh setopt localoptions warncreateglobal nobashrematch local REPLY # don't leak $REPLY into global scope # Do not highlight if there are more than 300 chars in the buffer. It's most # likely a pasted command or a huge list of files in that case.....
emulate -L zsh setopt localoptions warncreateglobal nobashrematch local REPLY # don't leak $REPLY into global scope # Do not highlight if there are more than 300 chars in the buffer. It's most # likely a pasted command or a huge list of files in that case.....