From 6d24af27c734cabcb0ded6f43eb3765c01a462db Mon Sep 17 00:00:00 2001 From: Jaromil Date: Tue, 18 Jul 2017 15:38:14 +0200 Subject: [PATCH] easy console start point --- console.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 console.sh diff --git a/console.sh b/console.sh new file mode 100755 index 0000000..ff9cbbe --- /dev/null +++ b/console.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +sdk="${1:-vm-sdk}" + +cat < $sdk/.zshrc +# local zshrc for easy start of console +# usage: ZDOTDIR=/path/to/vm-sdk zsh +pushd \$ZDOTDIR > /dev/null +# check that all submodules are there, useful for git repos +[[ -r lib/zuper/zuper ]] || git submodule update --init +source sdk +popd > /dev/null +EOF + +ZDOTDIR=$sdk zsh