easy console start point
This commit is contained in:
parent
d0a2935b67
commit
6d24af27c7
|
|
@ -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
|
||||
Loading…
Reference in New Issue