Ticket #2133: mc.zshrc.patch

File mc.zshrc.patch, 1.2 KB (added by zaytsev, 14 years ago)
  • mc-4.6.2~git20080311

    diff -rNu mc-4.6.2~git20080311/doc/mc.1.in mc-4.6.2~git20080311.patched/doc/mc.1.in
    old new  
    21312131you can specify startup 
    21322132commands for the subshell in your ~/.mc/bashrc file and 
    21332133special keyboard maps in the ~/.mc/inputrc file. 
    2134 .B tcsh 
    2135 users may specify startup commands in the ~/.mc/tcshrc file. 
     2134.B zsh 
     2135users may create ~/.mc/zsh and put all zsh rc files there, as 
     2136it will be passed to zsh as $ZDOTDIR (see zsh(1)). 
    21362137.PP 
    21372138When the subshell code is used, you can suspend applications at any 
    21382139time with the sequence C-o and jump back to the Midnight Commander, if 
  • mc-4.6.2~git20080311

    diff -rNu mc-4.6.2~git20080311/src/subshell.c mc-4.6.2~git20080311.patched/src/subshell.c
    old new  
    248248 
    249249        break; 
    250250 
    251         /* TODO: Find a way to pass initfile to TCSH and ZSH */ 
    252     case TCSH: 
    253251    case ZSH: 
     252        if (access (".mc/zsh", X_OK) == 0) 
     253            putenv ("ZDOTDIR=.mc/zsh"); 
     254        break; 
     255 
     256        /* TODO: Find a way to pass initfile to TCSH */ 
     257    case TCSH: 
    254258        break; 
    255259 
    256260    default: