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 ++++++++++++++ bashrc/bin/emerge | 4 ++++ bashrc/bin/maildirmake | 10 ++++++++++ bashrc/bin/mklnx | 7 +++++++ bashrc/bin/remerge | 11 +++++++++++ 5 files changed, 46 insertions(+) create mode 100755 bashrc/bin/copy create mode 100755 bashrc/bin/emerge create mode 100755 bashrc/bin/maildirmake create mode 100755 bashrc/bin/mklnx create mode 100755 bashrc/bin/remerge (limited to 'bashrc/bin') 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" diff --git a/bashrc/bin/emerge b/bashrc/bin/emerge new file mode 100755 index 0000000..cca0a8b --- /dev/null +++ b/bashrc/bin/emerge @@ -0,0 +1,4 @@ +#!/bin/bash + +export PROMPT_COMMAND="" +/usr/bin/emerge "$@" diff --git a/bashrc/bin/maildirmake b/bashrc/bin/maildirmake new file mode 100755 index 0000000..5ba5f11 --- /dev/null +++ b/bashrc/bin/maildirmake @@ -0,0 +1,10 @@ +# create maildir style directories + +if [[ -z "$1" ]] ; then + echo "Usage:" + echo -en "\t" + echo "$(basename $0) " + exit 1 +fi + +mkdir -m 0700 $1/{,cur,new,tmp} diff --git a/bashrc/bin/mklnx b/bashrc/bin/mklnx new file mode 100755 index 0000000..4fcd52e --- /dev/null +++ b/bashrc/bin/mklnx @@ -0,0 +1,7 @@ +#!/bin/bash + +set -e + +make "$@" +make modules_install +make install diff --git a/bashrc/bin/remerge b/bashrc/bin/remerge new file mode 100755 index 0000000..9d654f8 --- /dev/null +++ b/bashrc/bin/remerge @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ -z "$1" ]] ; then + echo "Usage:" + echo -en "\t" + echo "$(basename $0) " + exit 1 +fi + +export PROMPT_COMMAND="" +/usr/bin/emerge "$@" --usepkg=n -- cgit v1.2.3