Last active
January 1, 2017 21:33
-
-
Save vasekch/006170f4deb59dc22c3e to your computer and use it in GitHub Desktop.
tmux HOWTO long history, mouse scroll, focus pane on click, preload windows and panes on start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------------------------- | |
# This config will set up tmux default startup screens. | |
# | |
# Filename ~/.tmux.conf | |
# | |
# You should uncomment and change following items to fit your needs: | |
# - session name | |
# - window names (monitoring, nodejs, django, root console) | |
# - design number and sizes of split screens (run project, watch files, tail files, etc.) | |
# - preexecuted commands (grunt, gulp, management commands, htop, iftop, watch, tree, etc.) | |
# | |
# Originally was designed to preset views in Vagrant Virtual box when debugging | |
# and developping on local machine. | |
# | |
# Author | |
# (c) Vasek Chalupnicek - MIT licence | |
# ------------------------------------------------------------------------------------- | |
################# GENERIC config ################### | |
# enable mouse - since 2.1 (18 October 2015) | |
#set -g mouse on | |
# legacy mouse for version < 2.1 | |
## enable mouse scroll - since 2.1 (18 October 2015) | |
#set -g mode-mouse on | |
## enable mouse pick pane | |
#set -g mouse-select-pane on | |
# set long history | |
set -g history-limit 30000 | |
# start numbering at 1 | |
set -g base-index 1 | |
################ WINDOW 1 ################## | |
# # basic term | |
# new -s "noname-session" -n "window 1" "bash" | |
# # split horizontally 60%, change directory to /tmp -> print content -> show some arbitrary help text -> show prompt | |
# splitw -h -p 60 -t 0 "cd /tmp && bash -c 'ls -la --color && echo -e \"some helptext\"' ; bash" | |
# # split vertically 80% and start top, when closed jump to terminal | |
# splitw -v -p 80 -t 1 "top ; bash" | |
################ WINDOW 2 ################## | |
# # command is `neww`, the rest is the same as in WINDOW 1 | |
# neww -n "window 2" "bash" | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment