{"id":49,"date":"2010-06-18T06:54:13","date_gmt":"2010-06-18T08:54:13","guid":{"rendered":"http:\/\/skeletor.org.ua\/wordpress\/?p=49"},"modified":"2014-10-29T13:20:10","modified_gmt":"2014-10-29T11:20:10","slug":"%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b8-screena","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=49","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 screen\/tmux"},"content":{"rendered":"<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043f\u0440\u043e\u0444\u0438\u043b\u0438 <strong>screen\/tmux<\/strong><\/p>\n<p><em><span style=\"color: #ff6600;\">~\/.screenrc<\/span><\/em>:<\/p>\n<p><code>startup_message off<br \/>\ndeflogin on<br \/>\nvbell off<br \/>\nvbell_msg \"\"<br \/>\ncaption always<br \/>\nscrollback 25000<br \/>\ndefscrollback 25000<br \/>\ncaption string \"%{= kw} [%{y}%H%{= kw}] %{kr} %c %{dd} %{+b M}%n \u00a0%{-b dd}%-w%{+b B.}%n* %t%{-}%+w%&lt; %= | %{kR} Load: %l %{kB}\"<br \/>\n<\/code><\/p>\n<p><!--more--><\/p>\n<p>\u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a:<\/p>\n<p><code>[srv] 11:24\u00a0 3\u00a0 0 bash\u00a0 1 bash\u00a0 2 bash\u00a0 3* bash \u00a0 \u00a0 \u00a0 \u00a0 \u00a0| Load 0.00 0.00 0.00<\/code><\/p>\n<p><code>[\u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430]\u00a0\u0432\u0440\u0435\u043c\u044f\u00a0 \u043a\u043e\u043b\u043b.\u0441\u0435\u0430\u043d\u043e\u0432\u00a0 \u043d\u043e\u043c\u0435\u0440\u0430_\u0441\u0435\u043d\u0441\u043e\u0432 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 | \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430<\/code><\/p>\n<p><em><span style=\"color: #ff6600;\">~\/.tmux.conf<\/span><\/em>:<\/p>\n<p><code>bind r source-file ~\/.tmux.conf; display-message \"Reload Tmux Config\"<br \/>\nunbind C-b<br \/>\nset -g prefix C-a<br \/>\nbind C-a send-prefix<br \/>\n# use PREFIX | to split window horizontally and PREFIX - to split vertically<br \/>\nbind | split-window -h<br \/>\nbind - split-window -v<br \/>\n####new-session<br \/>\nset-window-option -g mode-mouse on<br \/>\nset -g history-limit 25000<br \/>\nset -g visual-activity off<br \/>\nset -g visual-bell off<br \/>\nset -g aggressive-resize on<br \/>\nset-option -g set-titles on<br \/>\nset-option -g set-titles-string '#S:#I.#P #W' # window number,program name,active (or not)<br \/>\nset-window-option -g automatic-rename on # auto name<br \/>\nset-option -g status-utf8 on<br \/>\nset-option -g status-justify left<br \/>\nset-option -g status-bg black<br \/>\nset-option -g status-fg cyan<br \/>\n###set-option -g status-interval 5<br \/>\nset-option -g status-left-length 30<br \/>\nset-option -g status-left '#[fg=yellow][#h] #[fg=magenta]%R #[fg=blue,bold][session=#S] #[default]'<br \/>\nset-option -g status-right ''<br \/>\nset-option -g visual-activity on<br \/>\nset-window-option -g monitor-activity on<br \/>\nset-window-option -g window-status-current-fg colour154<br \/>\nset-window-option -g window-status-fg colour243<br \/>\nset-window-option -g clock-mode-colour cyan<br \/>\nset-window-option -g clock-mode-style 24<\/code><\/p>\n<p>\u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a:<\/p>\n<p><code>[officebackup] 12:59 [session=0] 0:bash*<\/code><\/p>\n<p><code>[\u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430]\u00a0\u0432\u0440\u0435\u043c\u044f\u00a0[\u0438\u043c\u044f \u0441\u0435\u0441\u0441\u0438\u0438] \u00a0\u043d\u043e\u043c\u0435\u0440\u0430_\u0441\u0435\u043d\u0441\u043e\u0432 \u00a0<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043f\u0440\u043e\u0444\u0438\u043b\u0438 screen\/tmux ~\/.screenrc: startup_message off deflogin on vbell off vbell_msg &#8220;&#8221; caption always scrollback 25000 defscrollback 25000 caption string &#8220;%{= kw} [%{y}%H%{= kw}] %{kr} %c %{dd} %{+b M}%n \u00a0%{-b dd}%-w%{+b B.}%n* %t%{-}%+w%&lt; %= | %{kR} Load: %l %{kB}&#8221;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-others"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49"}],"version-history":[{"count":7,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":4478,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions\/4478"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}