Skip to content

Instantly share code, notes, and snippets.

@futoase
Created January 15, 2016 13:45
Show Gist options
  • Select an option

  • Save futoase/c1b11e3dfef95c8a0668 to your computer and use it in GitHub Desktop.

Select an option

Save futoase/c1b11e3dfef95c8a0668 to your computer and use it in GitHub Desktop.
tmux powerline setup
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/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/.tmux/tmux-powerline/powerline.sh right)"
set-option -g default-command "reattach-to-user-namespace -l /usr/local/bin/fish"
set-option -g default-shell "/usr/local/bin/fish"
set-window-option -g mode-keys vi
set -g prefix C-a
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind ^C new-window -n fish -c "#{pane_current_path}"
bind c new-window -n fish -c "#{pane_current_path}"
bind-key C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind-key C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
# Screensaver setting.
set -g lock-after-time 600
set -g lock-command "cmatrix -s -b"
bind -n C-k clear-history
set -g default-terminal "screen-256color"
set-option -g renumber-windows on

clone of tmux-powerline from github.com.

> mkdir -p ~/.tmux
> git clone https://github.com/erikw/tmux-powerline.git 

install of font for powerline.

> mkdir -p ~/Sandbox
> git clone https://github.com/powerline/fonts.git
> cd fonts
> open Roboto\ Mono\ Thin\ for\ Powerline.ttf

install reattach-to-user-namespace

> brew install reattach-to-user-namespace
@hugoeustaquio
Copy link

Can you please share the file "~/.tmux/tmux-powerline/powerline.sh"?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment