Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powerline on multiple lines in gnome-terminal #206

Closed
xiaoyanghaitao opened this issue Sep 14, 2015 · 3 comments
Closed

Powerline on multiple lines in gnome-terminal #206

xiaoyanghaitao opened this issue Sep 14, 2015 · 3 comments

Comments

@xiaoyanghaitao
Copy link

Hey,I installed tmux-powerline today and I finded the tmux display like this
tmux_with_powerline

I am using fedora 22 and the $LANG=zh_CN.UTF-8, $TERM=xterm-256color.
I also use 'alias tmux="tmux -2"' in my ~/.bashrc

Because I installed tmux and tmux-powerline today,so I followed the steps of guide on github.
Here's my /.tmux.conf:
set-option -g status on
set-option -g status-interval 2
set-option -g status-utf8 on
set-option -g status-justify "centre"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(
/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(/tmux-powerline/powerline.sh right)"
set-window-option -g window-status-current-format "#[fg=colour235, bg=colour27]⮀#[fg=colour255, bg=colour27] #I ⮁ #W #[fg=colour27, bg=colour235]⮀"
bind C-[ run '
/tmux-powerline/mute_powerline.sh left' # Mute left statusbar.
bind C-] run '~/tmux-powerline/mute_powerline.sh right' # Mute right statusbar.
I confirm the path of shell is right.

@xiaoyanghaitao
Copy link
Author

I also find when I delete 'set-option -g status-left "#(/tmux-powerline/powerline.sh left)"' and 'set-option -g status-right "#(/tmux-powerline/powerline.sh right)"' it will look like this
tmux_with_powerline2
but it looks like I haven't use powerline.

@lighter
Copy link

lighter commented Sep 17, 2015

+1.I am same.

I use mac

@phiberr
Copy link

phiberr commented Oct 17, 2015

The -g in "set-option -g status-left" sets that globally. Leaving it out will allow it to only be on one line.

*Note: If the set-option status-left is in your always sourced .tmux.conf, it will still act global, even if not set for that. I used a separate .tmux.powerline.conf and source that manually on the first line only. That way subsequent lines are not powerlined.

Source: I use this multiline and had to sort that out myself.

@erikw erikw closed this as completed Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants