Skip to main content
Topic: Suite66 tools in color (Read 602 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Suite66 tools in color

For anyone wondering how to make 66-* programs use the -z switch by default to print output in color, if you use Bash shell you can put something like this in /etc/bash/bashrc.d/66-color.bashrc:
Code: [Select]
#!/bin/bash
alias 66-all='66-all -z'
alias 66-boot='66-boot -z'
alias 66-clock='66-clock -z'
alias 66-dbctl='66-dbctl -z'
alias 66-disable='66-disable -z'
alias 66-echo='66-echo -z'
alias 66-enable='66-enable -z'
alias 66-env='66-env -z'
alias 66-getenv='66-getenv -z'
alias 66-gnwenv='66-gnwenv -z'
alias 66-hpr='66-hpr -z'
alias 66-init='66-init -z'
alias 66-inresolve='66-inresolve -z'
alias 66-inservice='66-inservice -z'
alias 66-instate='66-instate -z'
alias 66-intree='66-intree -z'
alias 66-ns='66-ns -z'
alias 66-nuke='66-nuke -z'
alias 66-olexec='66-olexec -z'
alias 66-parser='66-parser -z'
alias 66-scanctl='66-scanctl -z'
alias 66-scandir='66-scandir -z'
alias 66-shutdown='66-shutdown -z'
alias 66-shutdownd='66-shutdownd -z'
alias 66-start='66-start -z'
alias 66-stop='66-stop -z'
alias 66-svctl='66-svctl -z'
alias 66-tree='66-tree -z'
alias 66-umountall='66-umountall -z'
alias 66-update='66-update -z'
alias 66-which='66-which -z'
alias 66-writenv='66-writenv -z'
alias 66-yeller='66-yeller -z'

 

Re: Suite66 tools in color

Reply #1
For the lazybones:

Code: [Select]
for f in /usr/bin/66-*; do alias "${f##*/}"="$f -z"; done

(tested only for f in /usr/bin/s6-*; do alias "${f##*/}"="echo $f"; done w/o putting it into an rc file, but it should work)