mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-16 13:31:18 +00:00
Added zsh to the list of shell configs that xcodecapp-cocoa checks.
This commit is contained in:
1 parent
2b77da821c
commit
c45039fd70
1 file changed
+3
-1
@@ -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 = @"";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user