set MYSHELLCONFIG_BASE if not set in init

This commit is contained in:
Jakobus Schürz 2020-04-04 12:21:50 +02:00
parent 0b5c054405
commit 7ba0357cec

View file

@ -225,6 +225,9 @@ mkcd () {
sshmyshellconfig() { sshmyshellconfig() {
[ -z "${MYSHELLCONFIG_BASE+x} ] && MYSHELLCONFIG_BASE=".local/myshellconfig"
[ -z "${MYSHELLCONFIG_BASE_PARENT+x} ] && MYSHELLCONFIG_BASE_PARENT="$(dirname $MYSHELLCONFIG_BASE)"
if [ $1 == "localhost" ]; then if [ $1 == "localhost" ]; then
CMD="" CMD=""
else else