Fix prompt recursive search, ignore some pyrc things

This commit is contained in:
Ivan Malison 2014-11-13 20:40:06 -08:00
parent 0dfca02bcf
commit e977349bd9
4 changed files with 84 additions and 109 deletions

View File

@ -116,7 +116,8 @@ function separator {
} }
prompt_basic_colors_with_grey_separator prompt_basic_colors_with_grey_separator
# For reasons which are currently beyond me,
PROMPT='⚡ % $(print_with_color "%n" "$USERNAME_COLOR") $(separator "at") $(print_with_color "`hostname -s`" "$HOSTNAME_COLOR") $(separator "in") $(print_with_color "`current_directory`" "$CURRENT_DIRECTORY_COLOR")$(git_prompt_info) PROMPT='⚡ % $(print_with_color "%n" "$USERNAME_COLOR") $(separator "at") $(print_with_color "`hostname -s`" "$HOSTNAME_COLOR") $(separator "in") $(print_with_color "`current_directory`" "$CURRENT_DIRECTORY_COLOR")$(git_prompt_info)
$(command_line_character) %(?.$PROMPT_CHAR_SUCCESS.$PROMPT_CHAR_ERROR)%f ' %(?.$(print_with_color "$(command_line_character) " $PROMPT_CHAR_SUCCESS).$(print_with_color "$(command_line_character) " $PROMPT_CHAR_ERROR)) '
PS2='(%_) ' PS2='(%_) '

View File

@ -44,7 +44,7 @@ symbols=no
# --enable=similarities". If you want to run only the classes checker, but have # --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes # no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W" # --disable=W"
disable=C0111,C0103,R0903,R0904 disable=C0111,C0103,R0902,R0903,R0904,W0142,W0613,W0123
[REPORTS] [REPORTS]

View File

@ -5217,50 +5217,16 @@
<true/> <true/>
<key>MaxVertically</key> <key>MaxVertically</key>
<false/> <false/>
<key>NSColorPanelMode</key>
<string>7</string>
<key>NSFontPanelAttributes</key>
<string>1, 0</string>
<key>NSNavLastRootDirectory</key>
<string>~</string>
<key>NSQuotedKeystrokeBinding</key> <key>NSQuotedKeystrokeBinding</key>
<string></string> <string></string>
<key>NSRepeatCountBinding</key> <key>NSRepeatCountBinding</key>
<string></string> <string></string>
<key>NSScrollAnimationEnabled</key> <key>NSScrollAnimationEnabled</key>
<false/> <false/>
<key>NSTableView Columns KeyBingingTable</key>
<array>
<data>
BAtzdHJlYW10eXBlZIHoA4QBQISEhAhOU1N0cmluZwGEhAhOU09iamVjdACF
hAErATCG
</data>
<string>198</string>
<data>
BAtzdHJlYW10eXBlZIHoA4QBQISEhAhOU1N0cmluZwGEhAhOU09iamVjdACF
hAErATGG
</data>
<string>302</string>
</array>
<key>NSTableView Hidden Columns KeyBingingTable</key>
<array/>
<key>NSTableView Sort Ordering KeyBingingTable</key>
<array/>
<key>NSToolbar Configuration com.apple.NSColorPanel</key>
<dict>
<key>TB Is Shown</key>
<integer>1</integer>
</dict>
<key>NSWindow Frame NSColorPanel</key>
<string>427 356 222 309 0 0 1920 1057 </string>
<key>NSWindow Frame Preferences</key> <key>NSWindow Frame Preferences</key>
<string>807 244 924 485 0 0 2560 1440 </string> <string>269 110 924 485 0 0 2560 1417 </string>
<key>NSWindow Frame SUStatusFrame</key>
<string>768 697 384 129 0 0 1920 1058 </string>
<key>NSWindow Frame iTerm Window 0</key> <key>NSWindow Frame iTerm Window 0</key>
<string>4 0 1278 1417 0 0 2560 1417 </string> <string>430 809 505 376 0 0 2560 1417 </string>
<key>NSWindow Frame iTerm Window 1</key>
<string>936 786 585 451 0 0 2560 1440 </string>
<key>New Bookmarks</key> <key>New Bookmarks</key>
<array> <array>
<dict> <dict>
@ -5273,146 +5239,146 @@
<key>Ansi 0 Color</key> <key>Ansi 0 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.0</real> <real>0.19370138645172119</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.0</real> <real>0.15575926005840302</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.0</real> <real>0.0</real>
</dict> </dict>
<key>Ansi 1 Color</key> <key>Ansi 1 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.0</real> <real>0.14145714044570923</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.0</real> <real>0.10840655118227005</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.80000001192092896</real> <real>0.81926977634429932</real>
</dict> </dict>
<key>Ansi 10 Color</key> <key>Ansi 10 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.2039216011762619</real> <real>0.38298487663269043</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.88627451658248901</real> <real>0.35665956139564514</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.54117649793624878</real> <real>0.27671992778778076</real>
</dict> </dict>
<key>Ansi 11 Color</key> <key>Ansi 11 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.30980390310287476</real> <real>0.43850564956665039</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.91372549533843994</real> <real>0.40717673301696777</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.98823529481887817</real> <real>0.32436618208885193</real>
</dict> </dict>
<key>Ansi 12 Color</key> <key>Ansi 12 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.81176471710205078</real> <real>0.51685798168182373</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.62352937459945679</real> <real>0.50962930917739868</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.44705879688262939</real> <real>0.44058024883270264</real>
</dict> </dict>
<key>Ansi 13 Color</key> <key>Ansi 13 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.65882349014282227</real> <real>0.72908437252044678</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.49803918600082397</real> <real>0.33896297216415405</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.67843139171600342</real> <real>0.34798634052276611</real>
</dict> </dict>
<key>Ansi 14 Color</key> <key>Ansi 14 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.88627451658248901</real> <real>0.56363654136657715</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.88627451658248901</real> <real>0.56485837697982788</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.2039216011762619</real> <real>0.50599193572998047</real>
</dict> </dict>
<key>Ansi 15 Color</key> <key>Ansi 15 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.92549020051956177</real> <real>0.86405980587005615</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.93333327770233154</real> <real>0.95794391632080078</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.93333327770233154</real> <real>0.98943418264389038</real>
</dict> </dict>
<key>Ansi 2 Color</key> <key>Ansi 2 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.023529410362243652</real> <real>0.020208755508065224</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.60392159223556519</real> <real>0.54115492105484009</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.30588239431381226</real> <real>0.44977453351020813</real>
</dict> </dict>
<key>Ansi 3 Color</key> <key>Ansi 3 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.0</real> <real>0.023484811186790466</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.62745100259780884</real> <real>0.46751424670219421</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.76862752437591553</real> <real>0.64746475219726562</real>
</dict> </dict>
<key>Ansi 4 Color</key> <key>Ansi 4 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.64313727617263794</real> <real>0.78231418132781982</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.39607840776443481</real> <real>0.46265947818756104</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.2039216011762619</real> <real>0.12754884362220764</real>
</dict> </dict>
<key>Ansi 5 Color</key> <key>Ansi 5 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.48235291242599487</real> <real>0.43516635894775391</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.31372550129890442</real> <real>0.10802463442087173</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.45882350206375122</real> <real>0.77738940715789795</real>
</dict> </dict>
<key>Ansi 6 Color</key> <key>Ansi 6 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.60392159223556519</real> <real>0.52502274513244629</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.59607851505279541</real> <real>0.57082360982894897</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.023529410362243652</real> <real>0.14679534733295441</real>
</dict> </dict>
<key>Ansi 7 Color</key> <key>Ansi 7 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.81176471710205078</real> <real>0.79781103134155273</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.84313732385635376</real> <real>0.89001238346099854</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.82745099067687988</real> <real>0.91611063480377197</real>
</dict> </dict>
<key>Ansi 8 Color</key> <key>Ansi 8 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.32549020648002625</real> <real>0.15170273184776306</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.34117650985717773</real> <real>0.11783610284328461</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.33333331346511841</real> <real>0.0</real>
</dict> </dict>
<key>Ansi 9 Color</key> <key>Ansi 9 Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.16078430414199829</real> <real>0.073530435562133789</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.16078430414199829</real> <real>0.21325300633907318</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.93725490570068359</real> <real>0.74176257848739624</real>
</dict> </dict>
<key>Automatically Log</key> <key>Automatically Log</key>
<false/> <false/>
@ -5421,9 +5387,9 @@
<key>Background Color</key> <key>Background Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.0</real> <real>0.15170273184776306</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.0</real> <real>0.11783610284328461</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.0</real> <real>0.0</real>
</dict> </dict>
@ -5444,11 +5410,11 @@
<key>Bold Color</key> <key>Bold Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>1</real> <real>0.56363654136657715</real>
<key>Green Component</key> <key>Green Component</key>
<real>1</real> <real>0.56485837697982788</real>
<key>Red Component</key> <key>Red Component</key>
<real>1</real> <real>0.50599193572998047</real>
</dict> </dict>
<key>Character Encoding</key> <key>Character Encoding</key>
<integer>4</integer> <integer>4</integer>
@ -5461,18 +5427,18 @@
<key>Cursor Color</key> <key>Cursor Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>1</real> <real>0.51685798168182373</real>
<key>Green Component</key> <key>Green Component</key>
<real>1</real> <real>0.50962930917739868</real>
<key>Red Component</key> <key>Red Component</key>
<real>1</real> <real>0.44058024883270264</real>
</dict> </dict>
<key>Cursor Text Color</key> <key>Cursor Text Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.0</real> <real>0.19370138645172119</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.0</real> <real>0.15575926005840302</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.0</real> <real>0.0</real>
</dict> </dict>
@ -5495,11 +5461,11 @@
<key>Foreground Color</key> <key>Foreground Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>1</real> <real>0.51685798168182373</real>
<key>Green Component</key> <key>Green Component</key>
<real>1</real> <real>0.50962930917739868</real>
<key>Red Component</key> <key>Red Component</key>
<real>1</real> <real>0.44058024883270264</real>
</dict> </dict>
<key>Guid</key> <key>Guid</key>
<string>3314520D-1E49-4605-AFCE-EA48A596636F</string> <string>3314520D-1E49-4605-AFCE-EA48A596636F</string>
@ -5841,20 +5807,20 @@
<key>Selected Text Color</key> <key>Selected Text Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>0.0</real> <real>0.56363654136657715</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.0</real> <real>0.56485837697982788</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.0</real> <real>0.50599193572998047</real>
</dict> </dict>
<key>Selection Color</key> <key>Selection Color</key>
<dict> <dict>
<key>Blue Component</key> <key>Blue Component</key>
<real>1</real> <real>0.19370138645172119</real>
<key>Green Component</key> <key>Green Component</key>
<real>0.8353000283241272</real> <real>0.15575926005840302</real>
<key>Red Component</key> <key>Red Component</key>
<real>0.70980000495910645</real> <real>0.0</real>
</dict> </dict>
<key>Semantic History</key> <key>Semantic History</key>
<dict> <dict>
@ -6728,8 +6694,6 @@
<string>/Users/imalison</string> <string>/Users/imalison</string>
</dict> </dict>
</array> </array>
<key>NoSyncNeverRemindPrefsChangesLost</key>
<true/>
<key>OnlyWhenMoreTabs</key> <key>OnlyWhenMoreTabs</key>
<true/> <true/>
<key>OpenArrangementAtStartup</key> <key>OpenArrangementAtStartup</key>
@ -6791,10 +6755,8 @@
<true/> <true/>
<key>SUFeedURL</key> <key>SUFeedURL</key>
<string>http://iterm2.com/appcasts/testing.xml</string> <string>http://iterm2.com/appcasts/testing.xml</string>
<key>SUHasLaunchedBefore</key>
<true/>
<key>SULastCheckTime</key> <key>SULastCheckTime</key>
<date>2014-11-12T00:16:53Z</date> <date>2014-11-13T02:29:58Z</date>
<key>SavePasteHistory</key> <key>SavePasteHistory</key>
<false/> <false/>
<key>Show Toolbelt</key> <key>Show Toolbelt</key>

View File

@ -121,3 +121,15 @@ def install_powerline_monaco(ctx):
def cl_tools(ctx): def cl_tools(ctx):
if not util.command_exists('gcc'): if not util.command_exists('gcc'):
ctx.run('xcode-select --install') ctx.run('xcode-select --install')
@ctask
def iTerm(ctx):
library_plist = os.path.join(os.path.expanduser("~"), "Library",
"Preferences", "com.googlecode.iterm2.plist")
ctx.run("defaults write {0} LoadPrefsFromCustomFolder -bool true".format(
library_plist
))
ctx.run("defaults write {0} PrefsCustomFolder -string {1}".format(
library_plist, util.RESOURCES_DIRECTORY
))