easy console start point

This commit is contained in:
Jaromil 2017-07-18 15:38:14 +02:00
parent d0a2935b67
commit 6d24af27c7
1 changed files with 15 additions and 0 deletions

15
console.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
sdk="${1:-vm-sdk}"
cat <<EOF > $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