From c45039fd70ea914470cf00dd2fca95df8f2039d2 Mon Sep 17 00:00:00 2001 From: Jonathan R H Evans Date: Tue, 9 Aug 2011 10:15:23 +0100 Subject: [PATCH] Added zsh to the list of shell configs that xcodecapp-cocoa checks. --- Tools/xcodecapp-cocoa/AppController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/xcodecapp-cocoa/AppController.m b/Tools/xcodecapp-cocoa/AppController.m index 27882e343..61b67baaf 100644 --- a/Tools/xcodecapp-cocoa/AppController.m +++ b/Tools/xcodecapp-cocoa/AppController.m @@ -62,13 +62,15 @@ void fsevents_callback(ConstFSEventStreamRef streamRef, void *userData, size_t n _profilePath = [@"source ~/.profile" stringByExpandingTildeInPath]; else if([fm fileExistsAtPath:[@"~/.bashrc" stringByExpandingTildeInPath]]) _profilePath = [@"source ~/.bashrc" stringByExpandingTildeInPath]; + else if([fm fileExistsAtPath:[@"~/.zshrc" stringByExpandingTildeInPath]]) + _profilePath = [@"source ~/.zshrc" stringByExpandingTildeInPath]; else { NSAlert *alert = [NSAlert alertWithMessageText:@"Cannot find any valid profile file" defaultButton:@"Ok" alternateButton:nil otherButton:nil - informativeTextWithFormat:@"We have checked for ~/.bash_profile, ~/.profile and ~/.bashrc without luck.\n\nYou need to have on of this file to tell XCodeCapp-cocoa where is located nib2cib. Now we gonna try to without sourcing one this file and it may fail.\n\nIf you notice any error or weird behaviour, please look at Mac OS' Console.app for log message and open a ticket."]; + informativeTextWithFormat:@"We have checked for ~/.bash_profile, ~/.profile, ~/.bashrc and ~/.zshrc without luck.\n\nYou need to have on of this file to tell XCodeCapp-cocoa where is located nib2cib. Now we gonna try to without sourcing one this file and it may fail.\n\nIf you notice any error or weird behaviour, please look at Mac OS' Console.app for log message and open a ticket."]; [alert runModal]; _profilePath = @""; }