scroll with shift+pageup

by default you have to use: ctrl+b, '[' and then you can scroll up using shift+pageup but similar to a normal shell which does not require the escape sequence, one can set this variable:

   .tmux.conf:
   set -g terminal-overrides 'xterm*:smcup@:rmcup@'

afterwards restart tmux and simply use shift+pageup and shift+pagedown.

save the current tmux window contents to file

 clear
 tmux clear-history
 
 ... your command
 
 tmux capture-pane -S -32768 
 tmux save-buffer ~/tmux-$(date +%Y%m%d).text

clear history

 tmux clear-history

extend the status line

 $ cat /root/temperature
 #!/bin/sh
 #tmp=$(echo "$(cat /sys/devices/virtual/thermal/thermal_zone0/temp) /1000" | bc)
 tmp=$(expr $(cat /sys/devices/virtual/thermal/thermal_zone2/temp) \/ 1000)
 echo "$tmp°C"

now the .tmux.conf:

 cat .tmux.conf 
 set-option -g status-right "#[fg=blue] #H #[fg=black]%H:%M:%S %b-%y --- #(/root/temperature)"
Powered by MediaWiki