AutoYADM commit: 2025-03-09 15:30:03
This commit is contained in:
parent
872a84aa50
commit
3d2e13b26c
2 changed files with 40 additions and 33 deletions
12
.zshrc
12
.zshrc
|
@ -161,6 +161,18 @@ function mksh() {
|
|||
fi
|
||||
}
|
||||
|
||||
function osc7-pwd() {
|
||||
emulate -L zsh # also sets localoptions for us
|
||||
setopt extendedglob
|
||||
local LC_ALL=C
|
||||
printf '\e]7;file://%s%s\e\' $HOST ${PWD//(#m)([^@-Za-z&-;_~])/%${(l:2::0:)$(([##16]#MATCH))}}
|
||||
}
|
||||
|
||||
function chpwd-osc7-pwd() {
|
||||
(( ZSH_SUBSHELL )) || osc7-pwd
|
||||
}
|
||||
add-zsh-hook -Uz chpwd chpwd-osc7-pwd
|
||||
|
||||
function preexec {
|
||||
print -n "\e]133;C\e\\"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue