Skip to content

Instantly share code, notes, and snippets.

@oz
Created December 20, 2010 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oz/748467 to your computer and use it in GitHub Desktop.
Save oz/748467 to your computer and use it in GitHub Desktop.
My tmux.conf as of 2010/20/12
# General config:
# ---------------
setw -g utf8 on
set -g lock-after-time 1800
set-window-option -g automatic-rename off
set -g default-terminal screen
# Look & feel:
# ------------
# Panes colors
set -g pane-border-fg colour8
set -g pane-active-border-fg white
# Status bar colors
set -g status-left ""
set -g status-fg white
set -g status-bg colour0
set -g status-right "%H:%M %d-%b-%y"
set -g status-utf8 on
setw -g window-status-current-bg green
setw -g window-status-current-fg black
# Keys & mouse:
# -------------
# Select pane with mouse (capture mouse clicks)
set -g mouse-select-pane on
# Use vi keys in copy mode
setw -g mode-keys vi
# Selection with mouse in copy mode
setw -g mode-mouse on
# Use back-tick (`) as the control key:
set-option -g prefix `
unbind-key C-b
bind-key ` send-prefix
# Toggle status
bind-key b set-option status
# Open man-page
bind-key / command-prompt "split-window 'exec man %%'"
# Open SSH connection
bind-key S command-prompt "new-window -n %1 'ssh %1'"
@gavinjackson
Copy link

Great article, I'm struggling to get this one to work:
bind-key S command-prompt "new-window -n %1 'ssh %1'"

It prompts for the server and then nothing happens :-(

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