Move tmux example into extension directory

This commit is contained in:
Kim Silkebækken 2013-01-16 09:00:19 +01:00
parent 884bbd3f29
commit bf23ae286e
2 changed files with 11 additions and 12 deletions

View File

@ -1,18 +1,17 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''Powerline tmux statusline example.
Run with `tmux -f tmux.conf`.
'''
'''Powerline tmux statusline.'''
import argparse
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
try:
from powerline.core import Powerline
except ImportError:
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))
from powerline.core import Powerline
from powerline.core import Powerline
parser = argparse.ArgumentParser(description='powerline outputter')
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('side', nargs='?', default='all', choices=('all', 'left', 'right'))
parser.add_argument('--ext', default='tmux')

View File

@ -2,9 +2,9 @@ set-option -g status on
set-option -g status-interval 2
set-option -g status-utf8 on
set-option -g status-left-length 100
set-option -g status-left "#(./pl.py left)"
set-option -g status-left "#(./powerline_status.py left)"
set-option -g status-right-length 100
set-option -g status-right "#(./pl.py right)"
set-option -g status-right "#(./powerline_status.py right)"
set-option -g status-justify "centre"
set-option -g status-bg "colour235"
set-option -g status-fg "colour249"