X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=2690cfdfb427810a7e1dc9cbb0f51c958d858090;hb=d336df85259da98b36d8b4db20351e2b0448fd0f;hp=231de8e706d28a47b2c101f022aa2c22a89b3717;hpb=a7fd7af7604faef58c3d7eaa65e1cdb56cb8266c;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 231de8e..2690cfd 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2817,6 +2817,17 @@ graphic chipset." return 1 } fi + + if check_com -c tmate && check_com -c qrencode ; then + function grml-remote-support() { + tmate -L grml-remote-support new -s grml-remote-support -d + tmate -L grml-remote-support wait tmate-ready + tmate -L grml-remote-support display -p '#{tmate_ssh}' | qrencode -t ANSI + echo "tmate session: $(tmate -L grml-remote-support display -p '#{tmate_ssh}')" + echo + echo "Scan this QR code and send it to your support team." + } + fi } # now run the functions