Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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