Skip to content

Instantly share code, notes, and snippets.

@davidsm
Created October 14, 2014 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsm/daeb0787dcfb3c9982a0 to your computer and use it in GitHub Desktop.
Save davidsm/daeb0787dcfb3c9982a0 to your computer and use it in GitHub Desktop.
Tmux config
## .tmux.conf
set -g status-bg default
set -g status-fg white
set -g status-left "#[fg=green]#H"
set-window-option -g window-status-current-bg blue
set -g status-interval 10
bind M-w run-shell "tmux save-buffer - | xclip -i"
unbind [
bind < copy-mode
unbind ]
bind C-v paste-buffer
set -g default-terminal "screen"
## .bashrc
# Set the correct X display on login for tmux background shell
for name in `tmux ls -F '#{session_name}'`; do
tmux setenv -g -t $name DISPLAY $DISPLAY #set display for all sessions
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment