From ce308a8bae777e0c7019adb0bca82d5cac9eb086 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 21 Oct 2009 13:11:52 +0200 Subject: added custom scripts in dotfiles and added folder to path --- bashrc/bin/copy | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bashrc/bin/copy (limited to 'bashrc/bin/copy') diff --git a/bashrc/bin/copy b/bashrc/bin/copy new file mode 100755 index 0000000..0144fe5 --- /dev/null +++ b/bashrc/bin/copy @@ -0,0 +1,14 @@ +#!/bin/bash + +if [[ -z "$1" ]] ; then + echo "Usage:" + echo -en "\t" + echo "$(basename $0) " + exit 1 +fi + +# encode files suitable for copy&paste into other terminals +STR=$(tar cj $@ | base64; exit $PIPESTATUS) || exit $? +echo "cat << E=O=F | base64 -d | tar xj" +echo "$STR" +echo "E=O=F" -- cgit v1.2.3