#!/bin/sh

set -ex

#
# LXD images recipe: Basic CLI
#
# Dependencies: none
#
# Environment variables:
#
# - TIMEZONE: timezone, e.g. 'Europe/Berlin', default 'UTC'
#

installBase() {
TIMEZONE=${TIMEZONE:-UTC}
apk --update add curl wget git mc nano openssh-client shadow rsync tzdata zsh nodejs-npm
cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime
echo ${TIMEZONE} > /etc/timezone
apk del tzdata
git clone --depth=1 git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
sed -i 's/ash/zsh/g' /etc/passwd
npm -g install npm
mkdir ~/.ssh
cp /config/zsh /root/.zshrc
}

#!/bin/sh

set -ex

#
# LXD images recipe: Basic CLI
#
# Dependencies: none
#
# Environment variables:
#
# - TIMEZONE: timezone, e.g. 'Europe/Berlin', default 'UTC'
#

installBase() {
TIMEZONE=${TIMEZONE:-UTC}
apk --update add curl wget git mc nano openssh-client shadow rsync tzdata zsh nodejs-npm
cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime
echo ${TIMEZONE} > /etc/timezone
apk del tzdata
git clone --depth=1 git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
sed -i 's/ash/zsh/g' /etc/passwd
npm -g install npm
mkdir ~/.ssh
touch ~/.z
cp /config/zsh /root/.zshrc
}

Create empty initial file for zsh z plugin to suppress an error message
Create empty initial file for zsh z plugin to suppress an error message
