term-vt100/zsh coloring

Discussion in 'iPod touch' started by delight1, Jan 7, 2008.

  1. delight1

    delight1 New Member

    Joined:
    Dec 28, 2007
    Messages:
    29
    Likes Received:
    0
    I have been trying, without success, to enable colors in my shell.
    i have seen others, who have it working, and 'ls --color' works, but I am having difficultly setting up $ZLS_COLORS and making a .zshrc work...

    it is probably because I am a /bin/bash girl, so if someone could help me, I would be quite thankful.
  2. johnInSJ

    johnInSJ Member

    Joined:
    Dec 15, 2007
    Messages:
    551
    Likes Received:
    9
    Device:
    iPhone 4 (Black)
    From http://www.bsdforums.org/forums/showthread.php?t=18503

    These worked, but the .zshrc file does not appear to be sourced for you at startup

    # cat .zshrc
    ### COLORS ###
    fg_green=$'%{\e[0;32m%}'
    fg_blue=$'%{\e[0;34m%}'
    fg_cyan=$'%{\e[0;36m%}'
    fg_red=$'%{\e[0;31m%}'
    fg_brown=$'%{\e[0;33m%}'
    fg_purple=$'%{\e[0;35m%}'

    fg_light_gray=$'%{\e[0;37m%}'
    fg_dark_gray=$'%{\e[1;30m%}'
    fg_light_blue=$'%{\e[1;34m%}'
    fg_light_green=$'%{\e[1;32m%}'
    fg_light_cyan=$'%{\e[1;36m%}' fg_light_red=$'%{\e[1;31m%}'
    fg_light_purple=$'%{\e[1;35m%}'
    fg_no_colour=$'%{\e[0m%}'

    fg_white=$'%{\e[1;37m%}'
    fg_black=$'%{\e[0;30m%}'

    ### PROMPT ###
    PS1="${fg_purple}:${fg_brown}:${fg_cyan}%m${fg_light_blue}~${fg_light_gray}%# "

    # source .zshrc

    see:

    Attached Files:

  3. delight1

    delight1 New Member

    Joined:
    Dec 28, 2007
    Messages:
    29
    Likes Received:
    0
    thank you ^_^

Share This Page