diff --git a/.devcontainer/features/bash-config/config/onCreateCommand.sh b/.devcontainer/features/bash-config/config/onCreateCommand.sh index 6de479a..12a81cc 100644 --- a/.devcontainer/features/bash-config/config/onCreateCommand.sh +++ b/.devcontainer/features/bash-config/config/onCreateCommand.sh @@ -9,8 +9,10 @@ cp $CONFIG_STAGING/bash-config-rc $CONFIG_FOLDER if [[ ! -f $CONFIG_FOLDER/bashrc ]] ; then cp $CONFIG_STAGING/bashrc $CONFIG_FOLDER cp $CONFIG_STAGING/inputrc $CONFIG_FOLDER + cp $CONFIG_STAGING/zshrc $CONFIG_FOLDER fi # hook in the config to the root account ln -fs $CONFIG_FOLDER/inputrc /root/.inputrc -echo "source $CONFIG_FOLDER/bashrc" >> /root/.bashrc \ No newline at end of file +echo "source $CONFIG_FOLDER/bashrc" >> /root/.bashrc +echo "source $CONFIG_FOLDER/zshrc" >> /root/.zshrc \ No newline at end of file diff --git a/.devcontainer/features/bash-config/config/zshrc b/.devcontainer/features/bash-config/config/zshrc new file mode 100644 index 0000000..3bb6cfd --- /dev/null +++ b/.devcontainer/features/bash-config/config/zshrc @@ -0,0 +1,15 @@ +# This zshrc will be source from /root/.zshrc upon launch of every terminal +# in a devcontainer that uses the bash-config feature from +# https://github.com/DiamondLightSource/devcontainer-features + +# This file is initialized by vscode feature bash-config, +# but you are then free to edit it + +# set up eternal history for zsh +HISTCONTROL=ignoreboth:erasedups +HISTSIZE=10000000 +SAVEHIST=$HISTSIZE +HISTFILE=$CONFIG_FOLDER/.zsh_eternal_history + +# set a theme compatible with vscode terminals +ZSH_THEME="dst"