Giter Club home page Giter Club logo

tmux.conf's Introduction

tmux.conf

My customized tmux config file...

Added features (compared to default tmux)

  • Use prefix <ctrl>-<a> instead of the default <ctrl>-<b> prefix.
  • Use <shift>-<left arrow> and <shift>-<right arrow> to switch between windows.
  • Use prefix 'r' to reload your ~/.tmux.conf file.
  • Use prefix '|' to split panes horizonal.
  • Use prefix '-' to split panes vertical.
  • Use <alt>-<left arrow> and <alt>-<right arrow> to switch horizonal between planes.
  • Use <alt>-<arrow up> and <alt>-<arrow down> to switch vertical between planes.
  • Use F2 for help (press 'q' to return).
  • Use F3 for a list of hot-keys (press 'q' to return).

Tested on Fedora23+ and RHEL/Centos7+, tmux version 1.8+ and 2.1+

Screenshot example

tmux screenshot

Update your .tmux.conf file

Download my ~/.tmux.conf to your home directory using:

$ wget -O ~/.tmux.conf https://raw.githubusercontent.com/tedsluis/tmux.conf/master/.tmux.conf

Rename tmux window name in case of a ssh session

Tmux is by default not aware of remote hostnames after ssh. It will keep displaying the hostname on which tmux is running in the status bar. This small 'shortcoming' can be resolved by adding a ssh subroutine (a few lines a code) to ~/.bashrc in your home directory: addtobashrc
It will execute these lines evertime you run ssh and rename the tmux status bar name of your ssh session.
(note: this subroutine will become active after you login again)

Set the correct XTERM

Your default terminal may only supports 16 colors instead of 256 colors. In this can you could change your XTERM by adding this to ~/.bashrc in your home directory:

export TERM=screen-256color

(note:this setting will become active after you login again)

Modifying tmux colors

Tmux colors (for windows, panes, status bar, etc) can be set within the ~/.tmux.config. A small script called colors.pl can be very helpful. It shows screen colors with their color number (and name):
tmux colors

Kitty instead of Putty

Although Putty is widely used to connect from a Microsoft Windows host to a linux host, it does not support the <shift>-<arrow> and the <alt>-<arrow> keys.
<shift>-<left arrow> turns out to be the same as <left arrow> in a terminal.
Fortunately a fork of Putty called Kitty does support <shift>/<alt>-<arrow keys> and it has many more useful features.
Be sure you select the 'Xterm R6' within Kitty (configuration/Terminal/Keyboard).
keyboard setting kitty terminal
Kitty can be download here: http://www.fosshub.com/KiTTY.html

More info

You need more info on tmux? Check these resources:

Ted Sluis
[email protected]

tmux.conf's People

Contributors

tedsluis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.