mirror of
https://github.com/zdharma-continuum/zinit-configs.git
synced 2025-01-31 04:08:16 +01:00
10 lines
221 B
Bash
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
|