This commit is contained in:
2026-03-01 23:40:36 +01:00
parent 6f5b29c29e
commit f449492b3d
3 changed files with 41 additions and 27 deletions
@@ -1,3 +1,9 @@
zeditor-here() (
for fqdn in $(printf "%q\n" $(hostname -f) $(hostname -A) | sort -u); do
printf "zeditor ssh://%q:%q\n" "${fqdn}" "$(realpath "${1:-.}")"
done
)
zeditor-remote() {
local statedir="${XDG_STATE_HOME:-"$HOME/.local/state/"}/zeditor-remote-sh"
@@ -182,3 +188,10 @@ zeditor-remote() {
fi
unset -f lru_push
}
atom-here() {
zeditor-here "$@"
}
atom-remote() {
zeditor-remote "$@"
}