Closed2

windowsにhyper.jsをインストールしてWSL2で起動する方法

tttoltttol
  1. 公式からhyper.jsをDL

https://hyper.is/

  1. スタートメニューからHyperを起動
  2. Ctrl+,で設定ファイルを開く
  3. 以下編集

hyper-pokemonプラグインの設定内容を記載

module.exports = {
    config: {
        pokemon: 'gengar', // Define your favorite pokemon theme
        pokecursor: 'true', // Activate your theme's pokecursor
        pokemonSyntax: 'dark', // Define the color of the terminal tabs
        unibody: 'true', // Define the color of the Hyper window header
        poketab: 'true', // Deactivate your theme's poketab

シェルをWSL2に変更
hogehogeはWSLのユーザー名を指定)

        shell: 'C:\\Windows\\System32\\wsl.exe',
        // for setting shell arguments (i.e. for using interactive shellArgs: `['-i']`)
        // by default `['--login']` will be used
        shellArgs: ['-u', 'hogehoge'],

hyper-pokemonプラグインを追加

    plugins: ['hyper-pokemon'],
  1. Hyperを再起動する

参考

https://qiita.com/chanuu/items/b5c3d11e089ad0c7356d

https://github.com/klaudiosinani/hyper-pokemon/blob/master/themes/pokemon.yml

このスクラップは2024/07/28にクローズされました