You are not logged in.

#1 2006-02-09 04:18:21

lydgate
Member
From: London, UK
Registered: 2006-01-10
Posts: 60

Utterly pointless aesthetic bash scripting

So as the topic mentions, this is pointless, but it looks nice so I use it.  It's just a bash script that escapes the colors to match the daemon start/stopping look.  I know it breaks some terminals, but I pretty much am always in an aterm so it's fine for me.  Maybe someone else will like it.

archo
#!/bin/bash
echo -en "33[1m33[34m:: 33[37m$*33[0m"

What does this do?  It just prints the nice bold blue :: and brightwhite text for whatever you specify.  i.e., it looks like the Arch daemon starting/stopping messages, which I think look nice.

sample usage:

dmail
#!/bin/bash
archo "Laptop  "
mail
archo "Desktop "
ssh mydesktop mail

So when I run it I get a nice:
:: Laptop  No mail for lydgate
:: Desktop No mail for lydgate

that looks just like arch.  Yes, it's pointless, but I thought someone else might like it.

Anyone else got anything like this?  big_smile

Offline

#2 2006-02-09 11:38:35

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: Utterly pointless aesthetic bash scripting

vim /etc/rc.d/functions

Offline

#3 2006-02-09 13:55:55

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Utterly pointless aesthetic bash scripting

indeed and

. /etc/rc.d/functions

Offline

#4 2006-02-09 16:35:42

lydgate
Member
From: London, UK
Registered: 2006-01-10
Posts: 60

Re: Utterly pointless aesthetic bash scripting

Haha, thanks for pointing me to that

Offline

Board footer

Powered by FluxBB