[solved] zsh, compinit and colors

Hi all,
I've just updated my zsh package to version 4.3.11-1 and now I can't run two of its built-in functions, namely compinit and colors.
My .zshrc contains the following code:
# rest of ~/.zshrc ...
zstyle :compinstall filename '/home/andre/.local/.zshrc'
autoload -U compinit
compinit
zstyle ':completion:*' completer _complete _match _approximate
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
zstyle ':completion:*' menu select=5
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:kill:*' force-list always
zstyle ':completion:*:cd:*' ignore-parents parent pwd
# colors array (e.g. $fg[blue])
autoload colors
colors
# rest of ~/.zshrc ...
But when I open up a terminal (or type any of these two functions) I get the messages:
/home/ars/.zshrc:57: compinit: function definition file not found
/home/ars/.zshrc:69: colors: function definition file not found
I guess this isn't something very complex, but I couldn't find anything about it.
TIA.
Last edited by andre.ramaciotti (2010-12-22 00:15:09)

So what do lines 57 and 69 of your .zshrc file say specificially?
It's hard to tell what the line numbers are from what you posted, so.....
Also are those functions actually in your /usr/share/zsh/<version number>/functions directory?
colors appears to be in Misc and compinit appears to be in Completion in mine (version 4.3.10).

Similar Messages

  • How to solve illustrator cs6 save as cs5 problem about the stroke(when the stroke with clipping mask and color is gradient, save as cs5 will change to embed ).

    how to solve illustrator cs6 save as cs5 problem about the stroke(when the stroke with clipping mask and color is gradient, save as cs5 will change to embed ).

    Because it was not possible to apply a gradient to a stroke in CS5. When you open the file in CS5, it is reduced to something that can be rendered in CS5.

  • My computer, running on Lion, randomly flashes with crazy lights and colors. Doesn't happen often, but when it does it's totally random. What causes this problem and how can I solve it?

    My MacBook Pro, running on Lion, randomly flashes with crazy lights and colors. Doesn't happen often, but when it does it's totally random. It looks like the Northern LIghts!!!
    What causes this problem and how can I solve it?

    Really? Oh I get it. You're the kind of person who goes on tech message boards to make jokes - or friends.
    Well, I'm trying to solve this problem - which is a rather annoying way to spend a Saturday.
    SO either help or don't reply.

  • [Solved] zsh (vi-mode) and RPS1

    I'm a zsh (oh-my-zsh) user and vi-mode plugin works: https://github.com/robbyrussell/oh-my-z … plugin.zsh
    So I want to improve it:
    function zle-line-init zle-keymap-select {
    zle reset-prompt
    # change cursor color to reflect vicmd mode from http://andreasbwagner.tumblr.com/post/804629866/zsh-cursor-color-vi-mode
    zle-keymap-select () {
    if [ $TERM = "screen" ]; then
    if [ $KEYMAP = vicmd ]; then
    echo -ne '\033P\033]12;#FF3333\007\033\\'
    else
    echo -ne '\033P\033]12;#99FF33\007\033\\'
    fi
    elif [ $TERM != "linux" ]; then
    if [ $KEYMAP = vicmd ]; then
    echo -ne "\033]12;#FF3333\007"
    else
    echo -ne "\033]12;#99FF33\007"
    fi
    fi
    }; zle -N zle-keymap-select
    zle-line-init () {
    zle -K viins
    if [ $TERM = "screen" ]; then
    echo -ne '\033P\033]12;#99FF33\007\033\\'
    elif [ $TERM != "linux" ]; then
    echo -ne "\033]12;#99FF33\007"
    fi
    }; zle -N zle-line-init
    bindkey -v
    # if mode indicator wasn't setup by theme, define default
    if [[ "$MODE_INDICATOR" == "" ]]; then
    MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"
    fi
    function vi_mode_prompt_info() {
    echo "${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/}"
    # define right prompt, if it wasn't defined by a theme
    if [[ "$RPS1" == "" && "$RPROMPT" == "" ]]; then
    RPS1='$(vi_mode_prompt_info)'
    fi
    My theme did not defined the right prompt, so I'm expecting that "<<<" as RPS1 in vicmd mode, but for some odd reason it did not appeared, only the cursor color changed as expected. What is wrong with it?
    Last edited by irtigor (2011-06-17 21:35:59)

    You basically define function zle-line-init and zle-keymap-select to reset the prompt (your first 3 lines) and then you overwrite them to change the cursor colors so 'zle reset-prompt' is never called.

  • I would like to print links as regular text i.e. not underlined or in a different font and color.

    I have created a page with my resumé, using Dreamweaver CS4 on my iMac (running OS X 10.6.6).  You can see the page here: http://www.peterforkes.com/Resume.html
    It looks great when it is on the screen, but when I print it I would like the links to not be underlined and also to be displayed in the same font (and color) of the text surrounding it (a link is largely useless on a piece of paper, if it it not showing the URL).
    So, I created a stylesheet called "print.css" and have this in it:
    a:link {
    text-decoration: none;
    In my html document (Resume.html)  I have this code, at the top:
    <link href="_css/Resume.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="_css/Print.css" rel="stylesheet" type="text/css" media="print" />
    Now, things such as the graphics in my document do not print out (this is how I want it) but links seesm to be doing unexpected things for me.  As I mentioned, when I print the page I would like them to:
    a) not print with an underline (which I would expect the code snippet shown above to do).
    b) I would like the link color to be the same as the surrounding text (I have links in several places, such as in <h2>, <h3> and <p>).
    c) I would like the link to have the same font and text size as the surrounding text.
    Any help is always appreciated.
    Peter A. Forkes

    You've solved it for a:link but you may print the page with the <a> tag in link or visited state so you need to cover both.
    In http://www.peterforkes.com/_css/Print.css
    change
    a:link {
    text-decoration: none;
    to
    a:link, a:visited {
    color: #333;
    text-decoration: none;

  • HP LaserJet and Color LaserJet - Windows 7 support

    To help customers successfully use their products with Windows 7, HP has identified recommended drivers per product. Please visit the following support documents for more information:
    HP LaserJet and Color LaserJet - Windows 7 support
    Deskjet, Officejet, or Photosmart
    If you are having an issue with a windows 7 software install or driver, please start a new thread for greater visability.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

    Not to be confused with the title of this thread, because this tool will not work with installing most LaserJets, but try the HP Printer Install Wizard and let me know any error messages you get.  
    I will need to know quite a bit of information before I can be of much assistance, otherwise:
    1.  What error messages are you getting (ex. fatal error 1603)?
    2.  How are you trying to connect the printer (USB, wireless, etc)?
    3. What happened when you used the HP Print and Scan Dr?
    Lastly, If you do not answer these questions and others I know I will have, then I wish you the best of luck with your printer installation. Do not be mislead, just because I do not work for HP doesn't mean I'm not an expert.
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • Illustrator not recognizing some fonts and colors.

    My recently installed Illustrator is not recognizing certain fonts and colors which is producing problems in my designs.
    1. When I drag in a PDF to edit, the letters will appear as gibberish (random numbers, letters and signs) (the font was "arquitectura" which is installed on my OS X I Mac)
    2. When I try to change the color of a font using the eyedropper tool, it shows the proper color in the color box, but the font remains black.
    After googling it, these problems seem frequent back in 2009 but not so much today.  Im thinking it has something to do with this, which prompts when I open the application:
    "Your application install seems to be damaged, Please reinstall the application."

    sugarfactory,
    "Your application install seems to be damaged, Please reinstall the application."
    Obviously, you should. It is best to run the Cleaner Tool between uninstalling and reinstalling.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Font size and color will not change in emails, blogs, forums etc.

    I can no longer change the style or color of fonts in emails, blogs, forums etc. I can change the font size and nothing else. Everything works when I am connected using explorer so it is a setting or update in firefox that is causing the problem. If I cut/copy and paste into a word document from a web site I still cannot make a change. If I copy from a word document into a web site the colors and fonts revert to some default setting. I have tried changing the setting in Options for the fonts and colors, they make changes but they don't solve the problem.

    Hi,
    Please check if this happens in a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile]. If it's okay, you can later [https://support.mozilla.org/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile?s=profile&r=1&e=sph&as=s copy the personal data] from the old profile. Firefox stores your personal data and settings in another location separate from its [http://kb.mozillazine.org/Installation_directory files/folder]. A new profile would have the default Firefox settings ('''Tools''' ('''Alt''' + '''T''') > [https://support.mozilla.org/en-US/kb/Options%20window '''Options'''] and [http://kb.mozillazine.org/About:config '''about:config'''] ) and usually would also be empty of any '''Extensions''' and themes ('''Appearance''') in '''Tools''' > '''Add-ons''') and their settings. Also, a new profile would have no previous stored website data/settings etc. ('''Tools''' > '''Clear Recent History''').
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder & Files]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]

  • [SOLVED]How to get colorful output when pipe yaourt's STDIO to less?

    Hello, second post to NC.
    My question is how to get a piped(e.g. pipe yaourt's STDOUT to less) program's colorful output on screen without such option like '--color=always'.
    Before post this, I've configured less's default behaviour in "~/.zshrc" with following
    less() {
    env LESS=R less "$@"
    And When I run:
    $ dmesg --color=always | less
    Everything works fine(I get good, colorful output), but when I run this:
    $ yaourt -Qe --date | less
    Seems that I can only get grey output on terminal emulator (without 'less' I get colorful output).
    Does anyone has idea about getting yaourt's colorful output with 'less' ?
    Last edited by izmntuk (2014-06-08 00:15:15)

    Thanks for reply and after serveral mintues googling & getting some help from IRC:
    It seems that there're some utilities that do not provide such a option like 'color=always', what we need to do is trick these utilities into thinking their's STDIO is to a tty, not a pipe.
    1. stdoutisatty way (aur/stdoutisatty-git is needed) from [0]:
    $ stdoutisatty yaourt -Qe --date | less
    2. socat way (extra/socat is needed, sometimes doesn't work fine) from [1]:
    $ socat EXEC:"yaourt -Qe --date",pty STDIO | less
    3. script way (sometimes doesn't work fine) from [2]:
    $ script -fqc 'yaourt -Qe --date' | less
    4. unbuffer way (extra/expect is needed) from [3]:
    $ unbuffer yaourt -Qe --date | less
    5. zpty way (extra/zsh is needed) slightly modified from [4]:
    zmodload zsh/zpty
    autoload colors && colors
    pty() {
    local VERSION=0.2
    if [[ -t 0 && $# -ne 0 && ${1} != '--help' ]];then
    zpty pty-${UID} ${1+"$@"}
    ## when piping function pty to a pager, it may be a good idea to disable ^C *in this function*. assume that you're going to run this command: pty ls -alRi --color | less
    ## and now you enter a pager, and you press the End key by accident, and the pager seems stuck, and to get unstuck you pressed ^C, then the entire function interrupted. so to avoid the interrupt:
    if [[ ! -t 1 ]];then
    setopt local_traps
    trap '' INT
    zpty -r pty-${UID}
    else
    zpty -r pty-${UID}
    fi
    zpty -d pty-${UID}
    elif [[ $# -eq 1 && ${1} == '--version' ]];then
    print "pty v${VERSION}"
    else
    _-automatic-colored
    print "${bldblu}Usage: ${bldgrn}pty${rst} ${bldcyn}command${rst} [${bldcyn}argv${rst}...]
    wrapper function to run a program under pseudo-terminal
    ${bldcyn}--help${rst} print help message
    ${bldcyn}--version${rst} print version"
    fi
    ptypg() {
    if [[ -t 0 && $# -ne 0 && ${1} != '--help' ]];then
    pty $@ | pg
    else
    _-automatic-colored
    print "${bldblu}Usage: ${bldgrn}ptypg${rst} ${bldcyn}command${rst} [${bldcyn}argv${rst}...]
    wrapper function to run a program under pseudo-terminal and view its output in pg
    ${bldcyn}--help${rst} print help message"
    fi
    _-automatic-colored() {
    if [[ "${1}" == unset || ! -t 1 ]];then
    unset rst bld bldwht bldblk bldred bldgrn bldylw bldblu bldcyn blk red grn ylw blu cyn gry
    return 0
    elif [[ -t 1 ]];then
    rst="${reset_color}"
    bld="${fg_bold[default]}"
    bldwht="${fg_bold[white]}"
    bldblk="$fg_bold[black]"
    bldred="$fg_bold[red]"
    bldgrn="$fg_bold[green]"
    bldylw="$fg_bold[yellow]"
    bldblu="$fg_bold[blue]"
    bldcyn="$fg_bold[cyan]"
    gry="${fg[white]}"
    blk="$fg[black]"
    red="$fg[red]"
    grn="$fg[green]"
    ylw="$fg[yellow]"
    blu="$fg[blue]"
    cyn="$fg[cyan]"
    return 0
    fi
    $ pty yaourt -Qe --date | less
    $ ptypg yaourt -Qe --date
    And if there are any better implementation please leave a comment add it to wiki .
    Last edited by izmntuk (2014-08-19 14:18:45)

  • E71 and Color Correction

    I have noticed even with the new updated version firmware that when using the camera it still has a blue or purple tint and lacks sharpness.I preceded to http://mosh.nokia.com/content/4F546B0D59DD282DE040050A45300EA2 and D/l this file and installed on the E71.
    I took two pictures using the normal camera on the E71 and the conditions were set that both images not use flash. The first image was taken in the living room by the door leading to the deck and the other image was taken in a room just using the overhead fixture.
    I then preceded to using the installed program and went to camera-color correction and color corrected blue by adding yellow and increased the contrast slightly. I will add another post so that you might see Roomlight 1.jpg
    You decide if its better or worse and i also noticed and using the installed program that the file size just about doubled.
    Message Edited by iraf1 on 16-Feb-2009 04:13 PM
    Message Edited by iraf1 on 16-Feb-2009 04:17 PM
    Message Edited by iraf1 on 16-Feb-2009 04:22 PM
    Solved!
    Go to Solution.
    Attachments:
    Living Room.jpg ‏237 KB
    Roomlight.jpg ‏257 KB
    Living Room1.jpg ‏480 KB

    Somebody asked me to make a comparison of that living room photo with and without contrast.
    All photos reduced to 640x480 as if they were sent mms.
    Original Living room Photo
    Living Room Photo color corrected by adding yellow and slight magneta
    Living Room Photo same as 1. except contrast added.
    Color corrections done on the spot via photoeditor
    Message Edited by iraf1 on 17-Feb-2009 11:00 PM
    Attachments:
    Living Room.jpg ‏75 KB
    Living Room1.jpg ‏75 KB
    Living Room_Contrast.jpg ‏81 KB

  • Evening Out The Brightness and Color of a Set of Images

    So I have a set of images, usually between 500-700, all taken in a 20min period or so. Natural light through a window. It's shot handheld with my Canon rebel with a 18-55mm lens. Due to the slight change in light over the time period, the fact I'm zooming in and out, and moving around the subject, I get a lot of value and color variation. See the images below...
    My current process is to manually color correct each image so they match in terms of brightness and color. This gets very tedious of course. Could someone suggest a faster, preferably completely automated way to even out the brightness and colors of a set of images like these in lightroom so they all look pretty similar to each other?
    Thanks for any help!
    - Neil

    Hi léonie,
    >> One problem - it is not only the different color of the light because of the setting sun.
    >> Your Harry and Harold are receiving the sun light from different directions. Harold is
    >> facing away from the sun and the light in the shadows is much bluer. I doubt you will
    >> be able to "Lift&Stamp" the adjustment between these two groups of images without
    >> fine tuning it. The "shady" Harold will need additional color correction to turn the bluish
    >> shadows into sunlight, because the shadow regions need contrast stretching and
    >> more vibrancy as well.
    Yup, that's one reason I think I need a color correction after the fact method to handle this situation, obviously taking a shot that's mostly in shadow will look different than one where the character is almost all in complete sunlight.
    I guess I'm really having three issues here, first is the blue tint that gets introduced when I zoom in, and then second is the natural lightening and darkening that occurs as I take photos of the subject from different angles, and third is the fact since its sunlight the light does change somewhat over the 20minute period.
    Hopefully the first issue can be solved by turning off automatic white balance, and I'm still hoping there may be some automated method for evening out the value difference introduced by the 2nd and third issue. Although even if I can just solve the first issue that would save me a ton of time.
    Thanks for the info so far.
    - Neil

  • Dye or pigment based black and colors HP 88 for k5400

    I would like to know if black and colors is dye or pigmented.
    In advance thank you for your help.
    This question was solved.
    View Solution.

    Found the answer at: http://www.inkowl.com/index.php?C=10&S=17&B=8&product=1363&p=product
    pigment-based black ink for HP 18/88
    dye-based cyan ink for HP 18/88
    dye-based magenta ink for HP 18/88
    dye-based yellow ink for HP 18/88

  • PhotoSmart 8450 aligning the cartridges and color matchingr problems

    I have problems with aligning the cartridges and color matching on my PhotoSmart 8450 printer.
    Aligning the cartridges
    I just replaced a cartridge on my PhotoSmart 8450 printer. I always use the original Vivera cartridges.
    After replacing the 343 tricolor cartridge, the 100 gray cartridge suddenly gave smudge results.
    I did a lot of Clean cartridges and Align cartridges before getting acceptable results.
    The clean cartridges printout still gives small imperfections in the top grids.
    Color matching
    Most of the time I print on plain paper. Ocasionally I try to print photographs.
    In fact my PhotoSmart 8450 never really printed photographs in the right colors.
    Always too much blue and too little red... To solve this I decided to use ColorMunki Photo.
    But on the Colormunki test print some of the colors are smudgy.
    The settings are Paper type (HP Premium Plus Glossy), Quality (Best: 600dpi, PhotoREt), Real Life Photography (everything off), Color Management (I tried ColorSmart/sRGB or Managed by Application).
    The result is stripes and or smudgy appearance in some of the colors.
    Doing the same on plain paper (Standard or Best;  ColorSmart/sRGB) gives good results.
    What can I do to solve both problems?
    Thanks for helping.

    Hi,
    It looks as if you have done a lot of troubleshooting already, however it maybe that the cartridge is displaying minor color mix which should be apparent if you try to follow procedure in this support link, the stripes or small imperfections you have mentioned may be linked to partially missing color or colors which could also contribute to the appearance of photographs printing in the right colors.
    Hopefully this will give some assistance in resolving the issue.
    Thanks
    Neil
    Although I am an HP employee, I am speaking for myself and not for HP

  • How do I change font and colors back to default?

    I have changed the font and color of the text through the tools button and the options button and the content tab. I find nothing telling me how to change the font and colors back to default font and colors. Can you advise me? I'm using Windows 7 Home Premium OS. Thanks.

    Hi Brenda19605,
    You can use this article to set the fonts and colors: https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use?esab=a&s=font&r=0&as=s
    The default settings for the font are in this article:
    https://support.mozilla.org/en-US/kb/Some%20text%20shows%20up%20bold%20after%20upgrade
    Unfortunately for the default colors has no good reference. But for text it is black (most lower left) color, background is white (most upper left color). Unvisited links is blue (column 8, row 5) and visited link is purple (column 9, row 5).
    Let me know if you need anymore help!
    Lordfreak

  • I have a annual plan, it supposed must be used in two terminals, but i haven´t been able to install any app in a second computer, it always says that the app is only available as a trial download. What can I do to solve this issue, and be able to use my p

    I have a annual plan, it supposed must be used in two terminals, but i haven´t been able to install any app in a second computer, it always says that the app is only available as a trial download. What can I do to solve this issue, and be able to use my paid plan in two computers?

    Hi Susan,
    Please refer to the help document to fix this issue:
    Creative Cloud applications unexpectedly revert to trial mode | CS6, CCM
    You may also refer to the thread as below:
    creative cloud software says my free trial has expired, but I have a paid subscription
    Regards,
    Sheena

Maybe you are looking for

  • Using a for-each for a CallObject

    Hello everyone, i am having trouble to get the following scenario to work: 1. SQL Call is prepared and called 2. Branch with a condition whether there is a payment related to an invoice 3. For-Each record of the resultset a cancellation will be calle

  • How to register Lenovo B570 for warranty in the UK?

    Having bought a new B570 just before this new year (28th Dec 2011), I am still finding it impossible to register this laptop. After reading a message from someone that they had a crack appear on their B570's screen, I am very concerned - that I am ye

  • Prob with Drill down ALV's Layout

    Hi Friends, I have developed a report with class based ALV grid. First screen 100 - has an ALV for header details.   CALL METHOD G_GRID_100->SET_TABLE_FOR_FIRST_DISPLAY     EXPORTING       IS_VARIANT           = GS_DISVARIANT       IS_LAYOUT         

  • Verify.der file missing

    Hi, I have installed Netweaver 2004(Portal)with the system SID as X01. Thus, when i use transaction STrustSSO to import the verify.der file from this X01 portal(NW04), it overwrites the existing system ID=X01( exisitng verify.der file from Enterprise

  • Source System and RFC cnx

    Hi Friends! We have BI connected to ECC and working ok. Now, the business will create a new instance in ECC, in the same server. We only need use the second (newest) instance, but we dont want create e new source system. We are thinking about change