Last active
February 26, 2023 16:34
-
-
Save lorello/95fdca60b2a3c055881e990cbfdeac93 to your computer and use it in GitHub Desktop.
Byobu unattended setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ! which byobu >/dev/null; then | |
| echo "Byobu not installed, skip configuration" | |
| exit 1 | |
| fi | |
| [[ ! -f /var/lock/.byobu-shell-fixed ]] && \ | |
| echo "fixes byobu problem with UMASK, now byobu-shell is a login shell" && \ | |
| sed -i -e 's/exec "$SHELL"/exec "$SHELL" --login/' /usr/bin/byobu-shell && \ | |
| touch /var/lock/.byobu-shell-fixed | |
| echo "Launcher install" | |
| /usr/bin/byobu-launcher-install | |
| echo "Selected screen backend" | |
| which screen >/dev/null && /usr/bin/byobu-select-backend screen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment