Skip to content

Commit

Permalink
ADD: add setupReveal.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang Qiao committed Dec 22, 2013
1 parent a1f4c75 commit 88206c3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions setup_reveal.sh
@@ -0,0 +1,11 @@
#! /bin/bash

cat << EOF > ~/.lldbinit
command alias reveal_load_sim expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2);
command alias reveal_load_dev expr (void*)dlopen([(NSString*)[(NSBundle*)[NSBundle mainBundle] pathForResource:@"libReveal" ofType:@"dylib"] cStringUsingEncoding:0x4], 0x2);
command alias reveal_start expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
command alias reveal_stop expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStop" object:nil];
EOF

echo "done"

0 comments on commit 88206c3

Please sign in to comment.