PaperWM/debug
Ole Jørgen Brønner 7a215149cf Debug utils: print stacktrace and allow mulitlines debug messages
Encode newlines using non-breaking space.

Don't unconditionally encode newlines though since it the debug script must be
used to decode them.
2017-09-18 12:13:44 +02:00

11 lines
236 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env zsh
# We use non-breaking space to encode newlines in multiline messages
journalctl --follow \
$(dirname =gnome-shell(:A))/.gnome-shell-wrapped \
| sed -e 's|\]:|]:\n |' \
-e 's| |\n |g'