1. paradoxiology
  2. DotFiles

Commits

paradoxiology  committed f447b83

Add terminal emulator detection for iTerm2

In order to selectively choose background colours and powerline font

  • Participants
  • Parent commits dc7c382
  • Branches default

Comments (0)

Files changed (1)

File vim/vimrc

View file
     colors hybrid
 else
     " Use different colour schemes based on what terminal emulator the vim is running under
-    if $TERM_PROGRAM == 'Apple_Terminal'
+    if $TERM_PROGRAM =~ 'Term'
         colors seoul256
     else
         colors jellybeans
     \ 'y': 88,
     \ 'z': 45,
     \ }
-" Enable patched powerline font if it's in Terminal.app or GUI
-if $TERM_PROGRAM == 'Apple_Terminal' || has('gui_running')
+" Enable patched powerline font if it's in Terminal.app, iTerm, or GUI
+if $TERM_PROGRAM =~ 'Term' || has('gui_running')
     let g:airline_powerline_fonts = 1
 endif
 set guifont=DejaVu\ Sans\ Mono\ for\ Powerline