build / build (push) Successful in 38m26s
- das-shell 0.1.0: the Das two-line bash prompt by default (replaces the PS1 of Void's skel .bashrc once), dprompt (Textual prompt builder with presets and live preview) and dbanner (SSH login banner editor: canvas tools, fields with values, widgets, das-banner service for cached ones, Das OS logo and tryzub pictures). Python tests in make test. - das-server 0.3.0 depends on das-shell; the server installer mentions dprompt and dbanner; the desktop image includes it. - run-qemu.sh forwards the guest's SSH to localhost:2222. - Hardware fixes: Ventoy menu icon, boot menu titles "Das OS <version>". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
649 B
Python
18 lines
649 B
Python
"""Das OS shell tools: dprompt (bash prompt builder) and dbanner (login banner editor)."""
|
|
|
|
import os
|
|
|
|
VERSION = "0.1.0"
|
|
|
|
# Installed layout; DAS_SHELL_DATA points the tools at the source tree for tests
|
|
DATA_DIR = os.environ.get("DAS_SHELL_DATA", "/usr/share/das")
|
|
LIB_DIR = os.environ.get("DAS_SHELL_LIB", "/usr/lib/das")
|
|
ETC_DIR = os.environ.get("DAS_SHELL_ETC", "/etc/das")
|
|
CACHE_DIR = os.environ.get("DAS_SHELL_CACHE", "/var/cache/das/banner")
|
|
|
|
|
|
def config_dir():
|
|
"""The user's Das OS settings directory (~/.config/das)."""
|
|
base = os.environ.get("XDG_CONFIG_HOME") or os.path.expanduser("~/.config")
|
|
return os.path.join(base, "das")
|