---
title: "ターミナルがダサいとモテない。tmux + tpm 紹介編 | grasys blog"
url: "https://blog.grasys.io/post/yusukeh/terminal-tmux-tpm/"
description: "シリーズ記事一覧 - ターミナルがダサいとモテない。Terminal Emulator 紹介編 - ターミナルがダサいとモテない。WezTerm 紹介編 - ターミナルがダサいとモテない。Starship 紹介編 - ターミナルがダサいとモテない。Dracula Theme 紹介編 - ターミナルがダサいとモテない。…"
---

# ターミナルがダサいとモテない。tmux + tpm 紹介編

-   ![](/_astro/noicon.CTHOhNiB_1HMs6A.webp)[yusukeh](/authors/yusukeh/)
-   公開日：2024年7月24日
-   カテゴリー：[Tech](/categories/tech/)
-   タグ：[#シリーズ: ターミナル環境](/tags/シリーズ-ターミナル環境/)[#terminal](/tags/terminal/)[#tmux](/tags/tmux/)[#tpm](/tags/tpm/)

![ターミナルがダサいとモテない。tmux + tpm 紹介編](/_astro/hero.Du-gFre3_ZU7O86.webp)

> **シリーズ記事一覧**
> 
> -   [ターミナルがダサいとモテない。Terminal Emulator 紹介編](https://blog.grasys.io/post/yusukeh/terminal-emulator-macos/)
>     
> -   [ターミナルがダサいとモテない。WezTerm 紹介編](https://blog.grasys.io/post/yusukeh/terminal-wezterm/)
>     
> -   [ターミナルがダサいとモテない。Starship 紹介編](https://blog.grasys.io/post/yusukeh/terminal-starship/)
>     
> -   [ターミナルがダサいとモテない。Dracula Theme 紹介編](https://blog.grasys.io/post/yusukeh/terminal-dracula-theme/)
>     
> -   [ターミナルがダサいとモテない。neovim + AstroNvim 紹介編](https://blog.grasys.io/post/yusukeh/terminal-neovim-astronvim/)
>     
> -   [ターミナルがダサいとモテない。モダンなコマンド 紹介編](https://blog.grasys.io/post/yusukeh/terminal-modern-command/)
>     

tmux と tpm を使っていますか？

![ターミナルがダサいとモテない。tmux + tpm 紹介編（1）](/_astro/01-0-AonMjfN5BE1e0k1c-25bf96ed.CetKYnnN_ZD0dia.webp)

Photo by [Arget](https://unsplash.com/@arget?utm_source=medium&utm_medium=referral) on [Unsplash](https://unsplash.com/?utm_source=medium&utm_medium=referral)

恵比寿で IT 企業をやっているとモテると聞いて創業しましたが早いことありがたいことに10年目に突入した長谷川です。

まだモテる成果は出ていません、、、これからです！（4回目）

今回は [tmux](https://github.com/tmux/tmux) と [tpm](https://github.com/tmux-plugins/tpm) の紹介をしていきます。

[zelliji](https://zellij.dev/) という Rust 製の Terminal Multiplexer もありますが自分は未だに tmux を使ってます。

## tmux

普通に macOS なら homebrew で入ります。

Plain textcontent\_copy

```
brew install tmux
```

tmux 自体けっこう昔からあるのと愛用している人も多いと思います。  
というより自分はおっさんなので screen から使ってます。

tmux の説明は割愛します。  
どちらかというと Tmux Plugin Manager の説明です。[](https://github.com/tmux/tmux?source=post_page-----3f1c1cd7c72b--------------------------------)

[GitHub - tmux/tmux: tmux source code](https://github.com/tmux/tmux?source=post_page-----3f1c1cd7c72b--------------------------------)

## tpm

Tmux Plugin Manager の略で tpm です。[](https://github.com/tmux-plugins/tpm?source=post_page-----3f1c1cd7c72b--------------------------------)

[GitHub - tmux-plugins/tpm: Tmux Plugin Manager](https://github.com/tmux-plugins/tpm?source=post_page-----3f1c1cd7c72b--------------------------------)

## 利用している Tmux Plugins

自分は以下を利用しています。

まあ有名どころばっかり

-   [dracula/tmux](https://draculatheme.com/tmux)
    
-   [tmux-sensible](https://github.com/tmux-plugins/tmux-sensible)
    
-   [tmux-menus](https://github.com/jaclu/tmux-menus)
    
-   [tmux-mighty-scroll](https://github.com/noscript/tmux-mighty-scroll)
    
-   [tmux-mouse-swipe](https://github.com/jaclu/tmux-mouse-swipe)
    
-   [tmux-pain-control](https://github.com/tmux-plugins/tmux-pain-control)
    
-   [tmux-yank](https://github.com/tmux-plugins/tmux-yank)
    
-   [tmux-prefix-highlight](https://github.com/tmux-plugins/tmux-prefix-highlight)
    
-   [tmux-resurrect](https://github.com/tmux-plugins/tmux-resurrect)
    
-   [tmux-continuum](https://github.com/tmux-plugins/tmux-continuum)
    
-   [tmux-autoreload](https://github.com/b0o/tmux-autoreload)
    

け、結構使ってる・・・  
というか一部よくわからないし記憶が無いのもある・・・w

[GitHub - tmux-plugins/list: A list of tmux plugins.](https://github.com/tmux-plugins/list?source=post_page-----3f1c1cd7c72b--------------------------------)

## tpm の詳細説明

### setup tpm

tmux の config は **${HOME}/.tmux.conf** か **${XDG\_CONFIG\_HOME}/tmux/tmux.conf** です。（tmux が XDG に対応しているの今知りました。）

Plain textcontent\_copy

```
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'

# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
```

[](https://github.com/tmux-plugins/tpm?tab=readme-ov-file&source=post_page-----3f1c1cd7c72b--------------------------------#installation)[GitHub - tmux-plugins/tpm: Tmux Plugin Manager](https://github.com/tmux-plugins/tpm?tab=readme-ov-file&source=post_page-----3f1c1cd7c72b--------------------------------#installation)

key-binding

Key-binding は以下のようになっています。

prefix + I

-   新しい Plugin を Install する
    
-   tmux 環境の refresh
    

prefix + U

-   Plugin の Update

prefix + alt + u

-   Plugin の uninstall

[](https://github.com/tmux-plugins/tpm?tab=readme-ov-file&source=post_page-----3f1c1cd7c72b--------------------------------#key-bindings)[GitHub - tmux-plugins/tpm: Tmux Plugin Manager](https://github.com/tmux-plugins/tpm?tab=readme-ov-file&source=post_page-----3f1c1cd7c72b--------------------------------#key-bindings)

dracula/tmux

散々 dracula theme と言ってる気がするので一応紹介します。  
tmux の dracula theme です。  
自分が使ってるのは [nord-tmux](https://github.com/nordtheme/tmux) でした。  
ただ今日から dracula にします。

Apple の GPU は認識しないですね・・・

![ターミナルがダサいとモテない。tmux + tpm 紹介編（2）](/_astro/02-1-z0UvokNbAowyQGtihwZKiw-9ea23369.BSuBEdjb_ZH39zk.webp)

あと Starship と描画被ってる・・・WezTerm の right-status とも被ってる・・・けど気にしないw

以下のようにいろいろパラメータあるので試してみてください。

Plain textcontent\_copy

```
# -----------------------------------------------------------------------------
# dracula
# available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, network, network-bandwidth, network-ping, weather, time
#set -g @dracula-plugins "cpu-usage gpu-usage ram-usage"
set -g @dracula-plugins "cpu-usage gpu-usage ram-usage"
#set -g @dracula-plugins "time"
#set -g @dracula-plugins "cpu-usage gpu-usage ram-usage network battery"

# For each plugin is possible to customize background and foreground colors
# available colors: white, gray, dark_gray, light_purple, dark_purple, cyan, green, orange, red, pink, yellow
# set -g @dracula-[plugin-name]-colors "[background] [foreground]"
#set -g @dracula-cpu-usage-colors "pink dark_gray"

# Status bar options
# Enable powerline symbols
#set -g @dracula-show-powerline false
set -g @dracula-show-powerline true
# Switch powerline symbols
# for left
set -g @dracula-show-left-sep 
# for right symbol (can set any symbol you like as seperator)
set -g @dracula-show-right-sep 
# Enable window flags
set -g @dracula-show-flags true
# Adjust the refresh rate for the status bar
# the default is 5, it can accept any number
set -g @dracula-refresh-rate 5
# Switch the left smiley icon
# it can accept `session`, `smiley`, `window`, or any character.
set -g @dracula-show-left-icon session
# Add padding to the left smiley icon
# default is 1, it can accept any number and 0 disables padding.
set -g @dracula-left-icon-padding 1
# Enable high contrast pane border
set -g @dracula-border-contrast true

# weather options
#set -g @dracula-show-fahrenheit false
#set -g @dracula-fixed-location "Tokyo"
#set -g @dracula-show-location false

# time options
# Disable timezone
#set -g @dracula-show-timezone true
# Swap date to day/month
#set -g @dracula-day-month false
# Enable military time
#set -g @dracula-military-time true
# -----------------------------------------------------------------------------
```

[](https://draculatheme.com/tmux?source=post_page-----3f1c1cd7c72b--------------------------------)[tmux](https://draculatheme.com/tmux?source=post_page-----3f1c1cd7c72b--------------------------------)

tmux-sensible

おすすめオプションを設定してくれるらしい

いや〜これちゃんと使ってないな  
しかも手で別途設定してる項目ばかりだった・・・  
自分にはいらないかもしれない・・・w

[](https://github.com/tmux-plugins/tmux-sensible?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - tmux-plugins/tmux-sensible: basic tmux settings everyone can agree on](https://github.com/tmux-plugins/tmux-sensible?source=post_page-----3f1c1cd7c72b--------------------------------)

tmux-menus

あんまり使ってないなぁw

![ターミナルがダサいとモテない。tmux + tpm 紹介編（3）](/_astro/03-1-mLAcBU5tdogUKDHAgBb93Q-7679dad1.DcxXKGFB_1KccIp.webp)

tmux-menus

[](https://github.com/jaclu/tmux-menus?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - jaclu/tmux-menus: Tmux plugin, Popup menus to help with managing your environment](https://github.com/jaclu/tmux-menus?source=post_page-----3f1c1cd7c72b--------------------------------)

tmux-mighty-scroll

prefix + \[

Page up / Page down でスクロールできます。

大量の log を見るときなど便利

[](https://github.com/noscript/tmux-mighty-scroll?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - noscript/tmux-mighty-scroll: More scroll, less hassle](https://github.com/noscript/tmux-mighty-scroll?source=post_page-----3f1c1cd7c72b--------------------------------)

tmux-mouse-swipe

衝撃・・・全く使ってなかった・・・w

[](https://github.com/jaclu/tmux-mouse-swipe?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - jaclu/tmux-mouse-swipe: Tmux plugin, uses mouse horizontal swipe to switch window and…](https://github.com/jaclu/tmux-mouse-swipe?source=post_page-----3f1c1cd7c72b--------------------------------)

tmux-pain-control

これは最高です。

key-binding を設定してくれるだけなんだけど、めちゃくちゃ直感的で大好き❤️

画面分割の縦分割を ”|”  
横分割を **”-”** にしてくれてるあたりがめっちゃイイ  
（自分で設定しろよって話ではあるけど・・・）

[](https://github.com/tmux-plugins/tmux-pain-control?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - tmux-plugins/tmux-pain-control: standard pane key-bindings for tmux](https://github.com/tmux-plugins/tmux-pain-control?source=post_page-----3f1c1cd7c72b--------------------------------)

tmux-yank

tmux と neovim とかで clipboard を共有するのに使います。  
あると便利です。

[](https://github.com/tmux-plugins/tmux-yank?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - tmux-plugins/tmux-yank: Tmux plugin for copying to system clipboard. Works on OSX, Linux…](https://github.com/tmux-plugins/tmux-yank?source=post_page-----3f1c1cd7c72b--------------------------------)

tmux-prefix-highlight

prefix key 押したら画面で教えてくれます。

あんまり必要ないかも・・・

[](https://github.com/tmux-plugins/tmux-prefix-highlight?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - tmux-plugins/tmux-prefix-highlight: Plugin that highlights when you press tmux prefix key](https://github.com/tmux-plugins/tmux-prefix-highlight?source=post_page-----3f1c1cd7c72b--------------------------------)

tmux-resurrect & tmux-continuum

不慮の停止とかで tmux の状態を維持したいときに使います。

これも入れとくと便利です。

[](https://github.com/tmux-plugins/tmux-resurrect?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - tmux-plugins/tmux-resurrect: Persists tmux environment across system restarts.](https://github.com/tmux-plugins/tmux-resurrect?source=post_page-----3f1c1cd7c72b--------------------------------)

[](https://github.com/tmux-plugins/tmux-continuum?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - tmux-plugins/tmux-continuum: Continuous saving of tmux environment. Automatic restore when…](https://github.com/tmux-plugins/tmux-continuum?source=post_page-----3f1c1cd7c72b--------------------------------)

tmux-autoreload

config の変更で reload してくれます。

これは設定をいじってる最中は便利かも

[](https://github.com/b0o/tmux-autoreload?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - b0o/tmux-autoreload: Automatically reload your tmux config file on change](https://github.com/b0o/tmux-autoreload?source=post_page-----3f1c1cd7c72b--------------------------------)

## 最後に

今回この記事書いたおかげで使ってない plugins がわかったので断捨離w

tmux も config 持ち歩くと思うので tpm である程度管理されてても良いですね。  
自分もよく触るサーバとかには自分の config が入ってます。

自分は tmux に Multiprlexer としての機能以外を求めてなかったりするので、アレなんですが plugin list みるとめちゃくちゃあります。

[](https://github.com/tmux-plugins/list?source=post_page-----3f1c1cd7c72b--------------------------------)[GitHub - tmux-plugins/list: A list of tmux plugins.](https://github.com/tmux-plugins/list?source=post_page-----3f1c1cd7c72b--------------------------------)

面白い plugin あれば教えてください（他力本願w）

他にもシリーズ記事を書いているので、よろしければご覧ください！

> **シリーズ記事一覧**
> 
> -   [ターミナルがダサいとモテない。Terminal Emulator 紹介編](https://blog.grasys.io/post/yusukeh/terminal-emulator-macos/)
>     
> -   [ターミナルがダサいとモテない。WezTerm 紹介編](https://blog.grasys.io/post/yusukeh/terminal-wezterm/)
>     
> -   [ターミナルがダサいとモテない。Starship 紹介編](https://blog.grasys.io/post/yusukeh/terminal-starship/)
>     
> -   [ターミナルがダサいとモテない。Dracula Theme 紹介編](https://blog.grasys.io/post/yusukeh/terminal-dracula-theme/)
>     
> -   [ターミナルがダサいとモテない。neovim + AstroNvim 紹介編](https://blog.grasys.io/post/yusukeh/terminal-neovim-astronvim/)
>     
> -   [ターミナルがダサいとモテない。モダンなコマンド 紹介編](https://blog.grasys.io/post/yusukeh/terminal-modern-command/)
>     

転載：[ターミナルがダサいとモテない。tmux+tpm 紹介編（Medium）](https://medium.com/@yusuke_h/%E3%82%BF%E3%83%BC%E3%83%9F%E3%83%8A%E3%83%AB%E3%81%8C%E3%83%80%E3%82%B5%E3%81%84%E3%81%A8%E3%83%A2%E3%83%86%E3%81%AA%E3%81%84-tmux-tpm%E7%B4%B9%E4%BB%8B%E7%B7%A8-3f1c1cd7c72b)

## この記事を書いた人

[![](/_astro/yusukeh.BvUd2yKE_1mQ6Fp.webp)](/authors/yusukeh/)

### [yusukeh](/authors/yusukeh/)

Fly high. Think deep. Move fast. Go far.🦅

-   [X](https://x.com/yusukeh "X")
-   [GitHub](https://github.com/yusukeh "GitHub")
-   [Medium](https://medium.com/@yusukeh "Medium")
-   [Facebook](https://www.facebook.com/yusuke.exzm "Facebook")
-   [Instagram](https://www.instagram.com/yusukehasegawa/ "Instagram")
-   [LinkedIn](https://www.linkedin.com/in/hasegawa-yusuke-091b4164/ "LinkedIn")

[プロフィールと記事一覧](/authors/yusukeh/)
