Upgrade to Pro — share decks privately, control downloads, hide ads and more …

terminal

Takuya Sugimoto
August 24, 2012
1.1k

 terminal

bash + screen -> zsh + tmux

Takuya Sugimoto

August 24, 2012
Tweet

Transcript

  1. λʔϛφϧ bash + screen ͔Β zsh + tmux ΁ 2012.08.24

    Takuya Sugimoto 12೥8݄25೔౔༵೔
  2. Ͳ͏ͯ͠ʁ CentOS 5.6 32bit (VMWare Player) bash screen emacs &

    vi CentOS 6.2 64bit (VMWare Player) OS X 64bit zsh tmux emacs & vi zsh tmux emacs & vi ઃఆϑΝΠϧ͸ڞ༗ CentOS ΛΠϯετʔϧ͠௚ͨ͠ͱ͖ʹɺλʔϛφϧ؀ڥΛมߋɻ → OS ʹґଘ͠ͳ͍؀ڥΛͭ͘Δ 12೥8݄25೔౔༵೔
  3. γΣϧ shܥ 1977ʙAT&T cshܥ 1978ʙUC Berkeley Bourne Shell (sh) Bourne

    Again Shell (bash) Z Shell (zsh) Korn Shell (ksh) Standalone Shell (sash) C Shell (csh) TENEX C Shell (tcsh) γΣϧ͸ OS ͷػೳͷҰ෦ͰɺϢʔβʔ͔ΒͷࢦࣔΛड͚ͯղऍ͠ɺϓϩ άϥϜͷىಈ΍੍ޚͳͲΛߦ͏ϓϩάϥϜͰ͋Δɻ 12೥8݄25೔౔༵೔
  4. screen 2008ʙGNU tmux 2007ʙN.Marriott ॊೈͳ઀ଓػೳ ଟॏ΢Οϯυ΢ ઀ଓͷڞ༗ ॊೈͳ઀ଓػೳ ଟॏ΢Οϯυ΢ ઀ଓͷڞ༗

    ίϐʔ&ϖʔετ ୺຤ଟॏ઀ଓιϑτ΢ΣΞͰ͋Δɻ λʔϛφϧϚϧνϓϨΫα 12೥8݄25೔౔༵೔
  5. ΢Οϯυ΢ؒҠಈ / trigger key + n or p ৽͍͠΢Οϯυ΢ /

    trigger + c ىಈ / tmux 12೥8݄25೔౔༵೔
  6. tmux ͷϝϦοτ • ίϐʔ&ϖʔετ • ΢Οϯυ΢෼ׂ • ॊೈͳΧελϚΠζ ίϐʔ /

    Trigger Key + [ ϖʔετ / Trigger Key + ] ϖʔετ / Trigger Key + % 12೥8݄25೔౔༵೔
  7. ઃఆϑΟΞϧڞ༗ CentOS 6.3 64bit (VMWare Player) OS X 64bit ઃఆϑΝΠϧ͸ڞ༗

    Dropbox + GitHub •Dropbox ͰઃఆϑΝΠϧΛڞ༗ʢ.tmux.confɺ.zshrcɺ.emacs ...ʣ •GitHub Ͱཤྺ؅ཧʢ.tmux.confɺ.zshrcɺ.emacs ...ʣ 12೥8݄25೔౔༵೔
  8. έʔεελσΟ $ tmux (trigger key + c ) x 2

    0: emacs 1: zsh $ emacs ϑΝΠϧ $ git pull $ git checkout -b νέοτ໊ $ for i in `seq ࠷খ ࠷େ`; do rsync -trogl --progress ϑΝΠϧ ϗετ${i}:ϑΝΠϧ; done $ git commit -a -m ‘ίϝϯτ ref #νέοτ൪߸’ $ git checkout master $ git pull $ git merge νέοτ໊ $ git push $ git branch -d νέοτ໊ $ rsync -trogl --progress ϑΝΠϧ ςεταʔό:ϑΝΠϧ $ ssh ςεταʔό 1: ssh ɾɾɾɾɹςεταʔόͰಈ࡞֬ೝΛ͢Δɹɾɾɾɾ 12೥8݄25೔౔༵೔