Move tmux example into extension directory
This commit is contained in:
parent
884bbd3f29
commit
bf23ae286e
|
@ -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')
|
||||
|
|
@ -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"
|
Loading…
Reference in New Issue