Skip to content

Instantly share code, notes, and snippets.

@tobiase
Forked from paulodeleo/.tmux.conf
Created February 23, 2019 01:35
Show Gist options
  • Save tobiase/0adfa4bcd5938486869ed7373f3be0b5 to your computer and use it in GitHub Desktop.
Save tobiase/0adfa4bcd5938486869ed7373f3be0b5 to your computer and use it in GitHub Desktop.

Revisions

  1. @paulodeleo paulodeleo revised this gist May 22, 2013. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -4,8 +4,15 @@ setw -g mode-mouse on
    # Allow mouse to select which pane to use
    set -g mouse-select-pane on

    # Allow mouse dragging to resize panes
    set -g mouse-resize-pane on

    # Allow mouse to select windows
    set -g mouse-select-window on

    # Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
    set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
    # (commented out because it disables cursor navigation in vim)
    #set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"

    # Scroll History
    set -g history-limit 30000
  2. @paulodeleo paulodeleo revised this gist May 16, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion putty-config.txt
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,6 @@ SSH -> Remote command = tmux a -t base || tmux new -s base (if you're going to u
    SSH -> Protocol = 2 only
    SSH -> Auth -> Attempt authentication using Pageant = check (Most Important One)
    SSH -> Auth -> Private key file for authentication = c:\full\path\to\rsa.ppk
    SSH -> X11 -> Enable X11 forwarding = check (Important if you use X11 applications that need to display to your laptop.)
    SSH -> X11 -> Enable X11 forwarding = check (Important if you use X11 applications that need to display to your laptop.)

    (copy/paste with mouse in putty should be done holding shift key)
  3. @paulodeleo paulodeleo revised this gist May 16, 2013. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions putty-config.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    Terminal -> Bell -> Action to happen when a bell occurs = None (bell disabled)
    Window -> Lines of Scrollback = 1000 (For the quick "Oops, what did I do" moment)
    Window -> Reset scrollback on keypress = check
    Window -> Reset scrollback on display activity = uncheck
    SSH -> Remote command = tmux a -t base || tmux new -s base (if you're going to use this connection for tmux)
    SSH -> Protocol = 2 only
    SSH -> Auth -> Attempt authentication using Pageant = check (Most Important One)
    SSH -> Auth -> Private key file for authentication = c:\full\path\to\rsa.ppk
    SSH -> X11 -> Enable X11 forwarding = check (Important if you use X11 applications that need to display to your laptop.)
  4. @paulodeleo paulodeleo created this gist May 16, 2013.
    17 changes: 17 additions & 0 deletions .tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    # Make mouse useful in copy mode
    setw -g mode-mouse on

    # Allow mouse to select which pane to use
    set -g mouse-select-pane on

    # Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
    set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"

    # Scroll History
    set -g history-limit 30000

    # Set ability to capture on start and restore on exit window data when running an application
    setw -g alternate-screen on

    # Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
    set -s escape-time 50