Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
gottyã¯ã¿ã¼ããã«ã§å®è¡ããã³ãã³ãã®åºåãWebãã©ã¦ã¶ã§åç §ã§ããããã«ãããã¼ã«ã§ããªãã·ã§ã³ãä»ããã¨ãã©ã¦ã¶ããã®ãã¼å ¥åãå¯è½ã«ãªãã¾ããã¤ã¾ãgottyã§tmuxãèµ·åãããã¨ã§ãWebãã©ã¦ã¶ããè¤æ°ã»ãã·ã§ã³ãç»é¢åå²å¯è½ãªã¿ã¼ããã«ãå©ç¨ã§ããããã«vimãEmacsãªã©ãå©ç¨ãããã¨ãå¯è½ã«ãªãã¾ãã ç¹ã«Webã¢ããªã±ã¼ã·ã§ã³ãéçºãã¦ããå ´åãã¿ã¼ããã«ã§vimãEmacsã§ã³ã¼ãã£ã³ã°ãã¦ããã¨ãåä½ã確èªãããã³ã«ãã©ã¦ã¶ã«åãæ¿ããå¿ è¦ããããé常ã«é¢åã§ããgotty + tmuxã使ãã°ãã©ã¦ã¶ã®1ã¤ã®ã¿ãã§ã¿ã¼ããã«ã使ããã¨ãã§ããã®ã§ããã©ã¦ã¶ã®ã¿ããåãæ¿ããã ãã§ã¢ããªã±ã¼ã·ã§ã³ã®åä½ã確èªãããã調ã¹ç©ãããããããã¨ãã§ããã®ã§ãããããæå¼·ã®Webéçºç°å¢ã¨å¼ã°ããã¦ãªãã¨å¼ã¶ã®ã§ãããããAtomãªãããããªãã£ãããï¼ï¼ gott
Tmux Plugin Managerï¼TPMï¼ã使ã TL;DR tmux-plugins/tpmã使ãã¨ï¼Gemfileãpackage.jsonã®ããã«ï¼tmuxç¨ã®pluginã~/.tmux.confã«æ¸ãã¦ã¤ã³ã¹ãã¼ã«/æå¹åãããã¨ãã§ããï¼ ä½¿ãæ¹ ã¾ãï¼tpmãã¤ã³ã¹ãã¼ã«ããï¼ $ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm 次ã«ï¼ä»¥ä¸ã®ããã«~/.tmux.confã«å©ç¨ããããã©ã°ã¤ã³ãè¨è¿°ããï¼ãã©ã°ã¤ã³ã¯tmux-pluginsã«ã¾ã¨ã¾ã£ã¦ããï¼ set -g @tpm_plugins " \ tmux-plugins/tpm \ tmux-plugins/tmux-sidebar \ tmux-plugins/tmux-copycat \ tmux-plugins/tmux
ã¿ã¤ãã«ã®éãåºæ¬Macéå®ã§ãã ãªããã¨ããã¨ãã¡ã¢ãªä½¿ç¨çã®åå¾ã« vm_stat (vmstatãããªãã)ã¨ããã³ãã³ãã使ç¨ãã¦ããããã§ãã vmstatã¯Linuxç³»ã§ã¯æåãªã³ãã³ãã§ãããæ®å¿µãªããMacã«ã¯ãªããã§ãããã Macã®vm_statã¯ååã¯ä¼¼ã¦ãããã©è¡¨ç¤ºãããå 容ã¯éåéãã¾ãã ãã¨ã¡ã¢ãªä½¿ç¨çã調ã¹ãã³ãã³ãã¨ããã° free ã§ããããããMacã«ã¯ãªãã§ãããã ã§ã¯åç½®ãã¯ãããããã«ãã¦ãã©ããªæãã«ãªãã®ããã©ãã ä¸å¿èª¬æããã¨ãå·¦ãããLANGãèµ·åæéããã¼ãã¢ãã¬ã¼ã¸ãã¡ã¢ãªä½¿ç¨çãç¾å¨æå»ã表示ããã¦ãã¾ãã èµ·åæéã1æ¥ä»¥ä¸ã«ãªãã¨ãããªæãã«ãªãã¾ãã ã£ã§èå¿ã®æ¹æ³ã§ãããtmuxã®ã¹ãã¼ã¿ã¹ã©ã¤ã³ããèªåã§ä½æããã¹ã¯ãªãããå®è¡ããã¨ããæ¹æ³ã§ãã ã§ãã®ã§ä»¥ä¸ã®3ã¤ã®ã¹ã¯ãªãããPATHã®éã£ãå ´æã«ç½®ãã¦ãå®è¡æ¨©
tmux ã®è¨å®ãå¼ã£ã¦ vi 風ã®ãã¼ãã¤ã³ãã«å¤æ´ãã¾ãã ã¨ãã£ã¦ãã rpm ã§ã¤ã³ã¹ãã¼ã«ãã tmux ã«ã¯è¨å®ãã¡ã¤ã«ã®ãµã³ãã«ãå ¥ã£ã¦ãã¾ããã§ãããããã®ã¾ã¾ä½¿ããã¦ãããã¾ãã ãåæã OS: Scientific Linux 6.3 tmux ã vi 風ãã¼ãã¤ã³ãã«ããï¼~/.tmux.confï¼ è¨å®ãã¡ã¤ã«ã®ãµã³ãã«ãããå ´æã¯ãã¡ãã§ãã # cd /usr/share/doc/tmux-1.5/examples # ls -l åè¨ 36 -rw-r--r-- 1 root root 2014 7æ 9 18:24 2011 bash_completion_tmux.sh -rw-r--r-- 1 root root 913 7æ 9 18:24 2011 h-boetes.conf -rw-r--r-- 1 root root 2338 7æ 9 18
ãåãåãã åºåæ²è¼ã»ã¡ãã£ã¢ç´¹ä»ãªã©ã®ãåãåããã¯ãä¸è¨ã®ã¡ã¼ã«ã¢ãã¬ã¹ã¾ã§ãé¡ããããã¾ãã tactsh(at)gmail.com
æ¥å¹´ãä½ãããï¼ãµãã®ã¨ãæçãæºå«ããã2024å¹´æ¥ã®è¨é² æ¥ã¯èªçã楽ããå£ç¯ 1å¹´ã®ä¸ã§æãèªçã楽ããå£ç¯ã¯æ¥ã ã¨æããã¹ã¼ãã¼ã®æ£ã«ãããããªè²åãã®éèã並ã¶ã¨èªç¶ã¨ããããå¼¾ãã ä¸ã§ãã¨ãããã®ã¯å±±èã ãæ©ãã¨2æä¸æ¬ãããã並ã³å§ããããã¯ãã¿ã©ã®è½ããµãã®ã¨ãã¨ç¶ããæ¡ã®é ã«ã¯ããããã¦ãããâ¦
ã§ãµã¯ã£ã¨ã¤ã³ã¹ãã¼ã«ã§ãã¾ããtmuxã³ãã³ããã¿ã¤ãããã¨ãã³ã³ã½ã¼ã«ã表示ãããã¨æãã¾ãã â ãã使ãtmuxã³ãã³ã ç§ã¯ä¸è¨ã®ã³ãã³ãããã使ãã¾ãï¼ tmux attach - ãã§ã«éããã»ãã·ã§ã³ã«ã¢ã¿ãããã tmux list-windows (C-b w) - ã¦ã£ã³ãã¦ã®ä¸è¦§ãåå¾ãã tmux new-window (C-b n) - æ°ããã¦ã£ã³ãã¦ãä½ã tmux detach-client (C-b d) - ã¯ã©ã¤ã¢ã³ãããã¿ãããã tmux list-keys (C-b ?) - ãã¼ãã¤ã³ãã®ä¸è¦§ã表示ãã tmux next-window (C-b n) - 次ã®ã¦ã£ã³ãã¦ã表示ãã tmux previous-window (C-b p) - åã®ã¦ã£ã³ãã¦ã表示ãã tmux kill-window (C-b k) - ã¦ã£ã³ãã¦ãå¼·å¶çã«
端æ«ã§ä½æ¥ããããªããç¹ã«sshãªã©ã§ãããã¯ã¼ã¯å¾ãã«ä½æ¥ãè¡ããªããä»®æ³ç«¯æ«ç®¡çã½ããã¦ã§ã¢ã§ããGNU Screenã¯å¿ é ã¨ãã£ã¦ããã§ããããUbuntu 10.04ã§ããã°ãGNU Screenãããã«ä¾¿å©ã«ä½¿ãããã®ã¢ããªã±ã¼ã·ã§ã³ãbyobuããæåããå°å ¥ããã¦ããã®ã§ããã¡ãã使ã£ã¦ããã¦ã¼ã¶ãå¤ãã¨æãã¾ãï¼byobuã«ã¤ãã¦ã¯æ¬é£è¼72ååç §ã注1â ï¼â ã ä»é±ã®ã¬ã·ãã¯ãGNU Screenã¨åãä»®æ³ç«¯æ«ç®¡çã½ããã¦ã§ã¢ã§ãããtmuxãã¿ã¼ããã«ãã«ããã¬ã¯ãµãç´¹ä»ãã¾ãã GNU Screenã®å©ç¹ã¨ã¯ GNU Screenã®å©ç¹ãç°¡åã«ãããããã¦ããã¾ããããGNU Screenã«ã¯å¤ãã®æ©è½ãããã¾ãããçè ã主ã«ä½¿ã£ã¦ããã®ã¯ä»¥ä¸ã®ãããªæ©è½ã§ãã GUIã®ã¿ãæ©è½ã®ããã«ãè¤æ°ã®ç«¯æ«ãèµ·åãã¦åãæ¿ãããã 端æ«ãç»é¢åå²ãã¦ä½¿ããã¨ãã§ãã 端æ«ä¸ã§
以ä¸ãè¦ã¦ æ代ã¯GNU screenããtmux㸠- Dãã¤ãã¼å¿å Ubuntu ã« tmux ãå ¥ãã¦ã¿ã ã¤ã³ã¹ãã¼ã«æ¹æ³ ã¾ã ncurses ãå ¥ãã $ sudo apt-get install libncurses5-dev次ã«ãææ°çããã¦ã³ãã¼ã $ wget http://downloads.sourceforge.net/sourceforge/tmux/tmux-0.9.tar.gz?use_mirror=jaist次ã«ããã«ã $ tar xvfz tmux-0.9.tar.gz $ cd tmux-0.9 $ ./configure $ make && sudo make install è¨å®ãã¡ã¤ã« æ代ã¯GNU screenããtmux㸠- Dãã¤ãã¼å¿å ã«æ¸ããã¦ããä¾ããã®ã¾ã¾ ~/.tmux.conf ã«ã³ããã èµ·å $ tmux ã¨ãããã
ã¿ã¼ããã«ãã«ããã¬ã¯ãµ Advent Calendar 2011 : ATND19æ¥ç®ã®è¨äºã§ãããã¾ãã bannyanãããã»ãã·ã§ã³ã®ç§»åã«é¢ãã¦æ¸ãã¦ãããtmux ã§è¤æ°ã®ã»ãã·ã§ã³ã移åãã - åçµæ¥è¨ã®ã§ãã«ã¸ã¥ã¢ã«ã«ã¦ã£ã³ãã¦ã®ç§»åã§ãæ¸ãããã¨æãã¾ãã åã«ç§»å ã¾ãã¯åã®tmuxç»é¢ã§ãæãã¦ããã¾ãããã Snow Leopardã§iTerm2ã使ãããµã¼ãä¸ã§tmuxã使ã£ã¦ã¾ãããã¼ã¸ã§ã³ã¯1.5ã使ããã½ã¼ã¹ããã¤ã³ã¹ãã¼ã«ãã¦ä½¿ã£ã¦ã¾ãã ã¦ã£ã³ãã¦ã5ã¤éãããã®ãã¡ã®1ã¤ã®ã¦ã£ã³ãã¦ãéãã¦ããç¶æ ã§ããç¾å¨ãéãã¦ããã¦ã£ã³ãã¦ã§ã¯ã縦åå²ãè¡ããä¸ã®ãã¤ã³ã«topããä¸ã¯ä½æ¥ç¨ã«éãã¦ãã¾ãã ç¾å¨ãã¦ã£ã³ãã¦ã5ã¤éãã¦ããããã§ãããéãã¦ããã¦ã£ã³ãã¦ã¨ã¯å¥ã®ã¦ã£ã³ãã¦ã«ç§»åããããã«ã¯ã以ä¸ã®ããã«ãã¾ãã ãªã®ã§ãä»5çªç®ã®ã¦ã£ã³ãã¦ã«
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}