tags

[3]
[3]
[1]
[1]

オシャレで拡張可能な次世代ターミナルソフト Ghostty / Wave / Wezterm / Warp / Hyper

● 1 . Wezterm

Ghostty より設定がしやすいのでおすすめです

https://wezfurlong.org/wezterm/index.html

・Wezterm のインストール

こちらからダウンロードします

https://wezterm.org/install/macos.html

・Wezterm の設定の作成

cd
vi .wezterm.lua

.wezterm.lua を以下の内容で保存します

local wezterm = require 'wezterm'
local config = wezterm.config_builder()

------------------------------------------------------------
-- Window
------------------------------------------------------------

config.initial_cols = 150
config.initial_rows = 50

config.window_padding = {
  left = 6,
  right = 6,
  top = 4,
  bottom = 4,
}

config.window_close_confirmation = 'NeverPrompt'

------------------------------------------------------------
-- Font
------------------------------------------------------------

config.font = wezterm.font_with_fallback({
  "Menlo",
  "Hiragino Sans",
})
config.font_size = 14

------------------------------------------------------------
-- Colors
------------------------------------------------------------

config.color_scheme = 'Dissonance (Gogh)'

config.colors = {
  background = "#1e1e1e",  -- 余白部分の色
}

------------------------------------------------------------
-- Other
------------------------------------------------------------

-- タブがひとつの時はタブバー表示しない
config.hide_tab_bar_if_only_one_tab = true

-- Command + - のフォント変更時にウインドウサイズを変更しない
config.adjust_window_size_when_changing_font_size = false

-- padding
config.window_padding = {
  top = "8px",
  bottom = "8px",
  right = "16px",
  left = "16px",
}

------------------------------------------------------------
-- Key Binding
------------------------------------------------------------
config.keys = {
  {
    key = "LeftArrow",
    mods = "CMD|OPT",
    action = wezterm.action.ActivateTabRelative(-1),
  },
  {
    key = "RightArrow",
    mods = "CMD|OPT",
    action = wezterm.action.ActivateTabRelative(1),
  },
}

------------------------------------------------------------
-- Return configuration
------------------------------------------------------------

return config

https://wezfurlong.org/wezterm/colorschemes/d/index.html#dark

● 2 . Ghostty

https://github.com/ghostty-org

設定方法 https://ghostty.zerebos.com/

こちらにアクセスして「Ghostty Config」から export します。

設定ファイルに貼り付けます 例

window-width  = 200
window-height = 50

keybind = super+alt+left=previous_tab
keybind = super+alt+right=next_tab
keybind = shift+enter=text:\n

● Wave

https://www.waveterm.dev/download

brew でもインストールできます

brew install --cask wave

● warp

https://www.warp.dev/

● Hyper

https://hyper.is/

● ターミナルソフト Hyperのインストール方法 (MacOS Catalina 10.15 対応)

brew update
brew cask install hyper

● おすすめプラグイン

● hyper-active-tab

アクティブなタブの横に ▲ をつけて現在アクティブであることをわかりやすくします。

● hyper-quickssh

よく使うコマンドを設定ファイルに登録しておいて 「Command + O」 から呼び出して実行することができます
https://github.com/edhuardotierrez/hyper-quickssh

コマンドは ~/.hyper_plugins/hyper-quickssh-config.json に記述します。

● hyper-search

https://github.com/jaanauati/hyper-search
ターミナル内を文字列検索できるようにします。

● hyper-statusline

https://github.com/henrikdahl/hyper-statusline

● プラグインの指定方法

.hyper.js に次のように記述します

  plugins: [
    'hyper-active-tab' ,
    'hyper-quickssh' ,
    'hyper-search' ,
    'hyper-statusline' ,
  ],

No.211
07/31 17:23

edit