mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-11 22:02:32 +01:00
Merge branch 'romkatv:master' into battery-prompt-for-windows
This commit is contained in:
commit
20fc7b8a26
9 changed files with 58 additions and 7 deletions
|
|
@ -1179,7 +1179,7 @@ function _p9k_parse_aws_config() {
|
|||
################################################################
|
||||
# AWS Profile
|
||||
prompt_aws() {
|
||||
typeset -g P9K_AWS_PROFILE="${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}"
|
||||
typeset -g P9K_AWS_PROFILE="${AWS_SSO_PROFILE:-${AWS_VAULT:-${AWSUME_PROFILE:-${AWS_PROFILE:-$AWS_DEFAULT_PROFILE}}}}"
|
||||
local pat class state
|
||||
for pat class in "${_POWERLEVEL9K_AWS_CLASSES[@]}"; do
|
||||
if [[ $P9K_AWS_PROFILE == ${~pat} ]]; then
|
||||
|
|
@ -5870,7 +5870,7 @@ _p9k_preexec2() {
|
|||
typeset -g _p9k__preexec_cmd=$2
|
||||
_p9k__timer_start=EPOCHREALTIME
|
||||
P9K_TTY=old
|
||||
(( ! $+_p9k__iterm_cmd )) || _p9k_iterm2_preexec
|
||||
(( ! $+_p9k__iterm_cmd )) || _p9k_iterm2_preexec "$1"
|
||||
}
|
||||
|
||||
function _p9k_prompt_net_iface_init() {
|
||||
|
|
@ -8719,6 +8719,7 @@ function _p9k_init_cacheable() {
|
|||
amzn) _p9k_set_os Linux LINUX_AMZN_ICON;;
|
||||
endeavouros) _p9k_set_os Linux LINUX_ENDEAVOUROS_ICON;;
|
||||
rocky) _p9k_set_os Linux LINUX_ROCKY_ICON;;
|
||||
almalinux) _p9k_set_os Linux LINUX_ALMALINUX_ICON;;
|
||||
guix) _p9k_set_os Linux LINUX_GUIX_ICON;;
|
||||
neon) _p9k_set_os Linux LINUX_NEON_ICON;;
|
||||
*) _p9k_set_os Linux LINUX_ICON;;
|
||||
|
|
@ -8935,7 +8936,17 @@ function _p9k_iterm2_precmd() {
|
|||
}
|
||||
|
||||
function _p9k_iterm2_preexec() {
|
||||
[[ -t 1 ]] && builtin print -n '\e]133;C;\a'
|
||||
if [[ -t 1 ]]; then
|
||||
if (( ${+__p9k_use_osc133_c_cmdline} )); then
|
||||
() {
|
||||
emulate -L zsh -o extended_glob -o no_multibyte
|
||||
local MATCH MBEGIN MEND
|
||||
builtin printf '\e]133;C;cmdline_url=%s\a' "${1//(#m)[^a-zA-Z0-9"\/:_.-!'()~"]/%${(l:2::0:)$(([##16]#MATCH))}}"
|
||||
} "$1"
|
||||
else
|
||||
builtin print -n '\e]133;C;\a'
|
||||
fi
|
||||
fi
|
||||
typeset -gi _p9k__iterm_cmd=2
|
||||
}
|
||||
|
||||
|
|
@ -9140,6 +9151,7 @@ _p9k_precmd_first() {
|
|||
if [[ -n $KITTY_SHELL_INTEGRATION && KITTY_SHELL_INTEGRATION[(wIe)no-prompt-mark] -eq 0 ]]; then
|
||||
KITTY_SHELL_INTEGRATION+=' no-prompt-mark'
|
||||
(( $+__p9k_force_term_shell_integration )) || typeset -gri __p9k_force_term_shell_integration=1
|
||||
(( $+__p9k_use_osc133_c_cmdline )) || typeset -gri __p9k_use_osc133_c_cmdline=1
|
||||
elif [[ $TERM_PROGRAM == WarpTerminal ]]; then
|
||||
(( $+__p9k_force_term_shell_integration )) || typeset -gri __p9k_force_term_shell_integration=1
|
||||
fi
|
||||
|
|
@ -9541,7 +9553,11 @@ if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file && -n $__p9k_instant_p
|
|||
zf_rm -f -- $__p9k_instant_prompt_dump_file{,.zwc} 2>/dev/null
|
||||
fi
|
||||
|
||||
typeset -g P9K_VERSION=1.20.10
|
||||
typeset -g P9K_VERSION=1.20.13
|
||||
|
||||
if [[ ${VSCODE_SHELL_INTEGRATION-} == <1-> && ${+__p9k_force_term_shell_integration} == 0 ]]; then
|
||||
typeset -gri __p9k_force_term_shell_integration=1
|
||||
fi
|
||||
unset VSCODE_SHELL_INTEGRATION
|
||||
|
||||
_p9k_init_ssh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue