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:
Felix Van der Jeugt 2024-12-19 08:09:48 +01:00
parent 601dea0836
commit 432966a418
No known key found for this signature in database
GPG key ID: 58B209295023754D
5 changed files with 22 additions and 33 deletions

16
zshrc
View file

@ -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