This commit is contained in:
Artur Gurgul 2025-08-01 12:52:57 +02:00
commit b3dba4542f
44 changed files with 1596 additions and 0 deletions

17
bin/shell Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
# Try to get home directory safely
USER_HOME=$(getent passwd "$USER" | cut -d: -f6)
MYZSH="$USER_HOME/.local/bin/zsh"
if [ -x "$MYZSH" ]; then
echo "user own shell"
exec "$MYZSH" -i
elif command -v zsh >/dev/null 2>&1; then
echo "system zsh shell"
exec "$(command -v zsh)"
else
echo "fallback, default bash"
exec bash
fi