Share

hilite

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

please put this in bash

You are viewing a single message from this topic. View all messages.

  1. 2005-06-12 19:17:19 UTC
    Zsh is much more powerful shell than bash, and you can use almost all constructs of bash in zsh.
    This is a short howto for zsh

    2. Put something like

    Code:
    [[ $hilite = "on" ]] || hilite="on" exec hilite zsh

    into one of your initialisation files


    3. The prompt is sometimes returned before the hilite does the colouring so I find it useful to put something into precmd():

    Code:
    precmd () {sleep 0}


    The colouring does not work on ttys on the computers I use; nonetheless hilite can easily be patched (you can also change the colour). So what I do is

    Code:

    patch hilite-1.5.c <<EOF
    36c36
    < #define HEADER "\033[91m"
    ---
    > #define HEADER "\033[1m\033[31m"
    EOF
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.