For those who like their Terminal screens clean.
Requirements:
This is just a quick and dirty solution to something that bothered me.
# Sets terminal window title until it is overwritten by $PROMPT_COMMAND (when erl is done). | |
function erl { | |
echo -ne "\033]0;erl\007" | |
/usr/bin/erl "$@" | |
} |
#!/usr/bin/env bash | |
if [ "$(xdotool search --name --onlyvisible erl)" = "$(xdotool getactivewindow)" ]; then | |
xdotool type --clearmodifiers 'io:format("\e[H\e[J").' | |
xdotool key Return | |
fi |
ctrl + ~l | |
~/.config/sxhkd/scripts/clearerl |