Somehow I'm unable to get this working with color output, it works but no colors are shown.
- I'm currently using these
alias
'es in mybash
shell:alias Xterm='xterm -geometry 132x60 +dc +cm -e ' alias Watch='watch --color --differences --interval=1 --exec ' alias xterm-watch='Xterm Watch ' alias _nc='networkctl' alias nc-status='_nc --no-pager --stats --full status' alias nc-status-watch='xterm-watch nc-status'
$TERM
is set toxterm-256color
- When i enter
nc-status-watch
at the bash prompt, anxterm
window pops-up correctly with awatch
command running thenetworkctl
command with it's arguments. But the output does not show any colors.
How can I get colored output of systemd
commands run with watch
inside xterm?