1
0
Fork 0
mirror of https://github.com/zdharma-continuum/zinit-configs.git synced 2025-01-31 04:08:16 +01:00
zinit-configs/psprint/functions/pscopy_xauth
2019-06-27 12:47:09 +02:00

10 lines
221 B
Bash

# DESC: Copies xauth data to "$1" at "$2"
local idx
for idx in 0 1; do
builtin print -- 'mac:'$idx to "$1"@"$2"..
command xauth nextract - 'mac:'$idx | command ssh "$1"@"$2" xauth nmerge -
done
# vim:ft=zsh:et