update configuration
* copy URLs in foot to primary selection * remove rarely used/invalid choices from delegator * manually exit in mailsync because ! disabled set -e * emit OSC 7 cwd so foot can open new windows in current directory
This commit is contained in:
parent
601dea0836
commit
432966a418
5 changed files with 22 additions and 33 deletions
16
zshrc
16
zshrc
|
@ -80,7 +80,7 @@ agenda() {
|
|||
}
|
||||
|
||||
magnet() {
|
||||
ssh Tumbrel "transmission-remote --add '$(xclip -sel c -o)'"
|
||||
ssh Tumbrel "transmission-remote --add '$(wl-paste)'"
|
||||
}
|
||||
|
||||
# Ledger
|
||||
|
@ -103,3 +103,17 @@ go() {
|
|||
terminfo() {
|
||||
infocmp -x | ssh $@ 'cat > $TERM.info && tic -x $TERM.info && rm $TERM.info'
|
||||
}
|
||||
|
||||
# Emit OSC 7 cwd so foot can open new windows in current directory
|
||||
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))}}
|
||||
}
|
||||
|
||||
chpwd-osc7-pwd() {
|
||||
(( ZSH_SUBSHELL )) || osc7-pwd
|
||||
}
|
||||
autoload -Uz add-zsh-hook
|
||||
add-zsh-hook -Uz chpwd chpwd-osc7-pwd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue