Skip to content

Commit

Permalink
feat: add vso-os-shell to use VSO as primary shell
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Dec 19, 2023
1 parent 134cd2a commit 1f913da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions includes.container/usr/bin/vso-os-shell
Original file line number Diff line number Diff line change
@@ -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 "$@"
5 changes: 5 additions & 0 deletions modules/00-vanilla-system-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1f913da

Please sign in to comment.