Преглед изворни кода

add 'remote pbcopy' workaround

Kevin Heinicke пре 9 година
родитељ
комит
f8a5a9a9b5
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      zshrc

+ 6 - 0
zshrc

@@ -27,6 +27,12 @@ printable-code()
     echo $doc | pandoc -o "$name.$oformat"
 }
 
+# make the clipboard working on remote
+if [[ "$SSH_CLIENT" ]]; then
+  SSH_IP=$(echo $SSH_CLIENT | awk '{print $1}')
+  alias pbcopy="ssh $SSH_IP pbcopy"
+fi
+
 #
 # Aliases
 #