From 1f913da8b7cd8643bf436fc3ef26de75b8e5ad6f Mon Sep 17 00:00:00 2001 From: mirkobrombin Date: Tue, 19 Dec 2023 20:15:00 +0100 Subject: [PATCH] feat: add vso-os-shell to use VSO as primary shell --- includes.container/usr/bin/vso-os-shell | 8 ++++++++ modules/00-vanilla-system-operator.yml | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 includes.container/usr/bin/vso-os-shell diff --git a/includes.container/usr/bin/vso-os-shell b/includes.container/usr/bin/vso-os-shell new file mode 100644 index 0000000..d7484bb --- /dev/null +++ b/includes.container/usr/bin/vso-os-shell @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ ! -d ~/.vso-os-shell/history ]; then + mkdir -p ~/.vso-os-shell/history +fi + +echo "(`date +%Y%m%d-%H:%M:%S`) -> $@" >> ~/.vso-os-shell/history/`date +%Y%m%d`.log +/usr/bin/vso run /usr/bin/os-shell "$@" diff --git a/modules/00-vanilla-system-operator.yml b/modules/00-vanilla-system-operator.yml index 55a9a66..32be5df 100644 --- a/modules/00-vanilla-system-operator.yml +++ b/modules/00-vanilla-system-operator.yml @@ -16,6 +16,11 @@ modules: url: https://github.com/Vanilla-OS/vanilla-system-operator/releases/download/continuous/vso-man.tar.gz commands: - mv /sources/man/vso.1 /usr/share/man/man1/ +- name: vso-os-shell + type: shell + commands: + - chmod +x /usr/bin/vso-os-shell + - echo "/usr/bin/vso-os-shell" >> /etc/shells - name: vso-deps-install type: apt source: