差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
windows:hyper [2023/10/04 09:42] – [インストール] ともやん | windows:hyper [2023/10/05 19:33] (現在) – [設定の編集] ともやん | ||
---|---|---|---|
行 26: | 行 26: | ||
===== 設定の編集 ===== | ===== 設定の編集 ===== | ||
- | < | + | 初期設定の < |
- | <code powershell> | + | < |
- | $ nano %APPDATA%\hyper\.hyper.js | + | <WRAP color_command>< |
- | </code> | + | <b class=GRN> |
- | </ | + | </pre></ |
- | < | + | < |
- | <code javascript %APPDATA%\hyper\.hyper.js> | + | "use strict"; |
// Future versions of Hyper may add additional config options, | // Future versions of Hyper may add additional config options, | ||
// which will not automatically be merged into this file. | // which will not automatically be merged into this file. | ||
// See https:// | // See https:// | ||
- | |||
module.exports = { | module.exports = { | ||
- | | + | |
- | // choose either `' | + | // choose either `' |
- | // or `' | + | // or `' |
- | updateChannel: | + | updateChannel: |
- | + | // default font size in pixels for all tabs | |
- | | + | fontSize: 12, |
- | fontSize: 12, | + | // font family with optional fallbacks |
- | + | fontFamily: ' | |
- | | + | // default font weight: ' |
- | fontFamily: ' | + | fontWeight: ' |
- | + | // font weight for bold characters: ' | |
- | | + | fontWeightBold: |
- | fontWeight: ' | + | // line height as a relative unit |
- | + | lineHeight: 1, | |
- | | + | // letter spacing as a relative unit |
- | fontWeightBold: | + | letterSpacing: |
- | + | // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
- | | + | cursorColor: |
- | lineHeight: 1, | + | // terminal text color under BLOCK cursor |
- | + | cursorAccentColor: | |
- | | + | // `' |
- | letterSpacing: | + | cursorShape: |
- | + | // set to `true` (without backticks and without quotes) for blinking cursor | |
- | | + | cursorBlink: |
- | cursorColor: | + | // color of the text |
- | + | foregroundColor: | |
- | | + | // terminal background color |
- | cursorAccentColor: | + | // opacity is only supported on macOS |
- | + | backgroundColor: | |
- | | + | // terminal selection color |
- | cursorShape: | + | selectionColor: |
- | + | // border color (window, tabs) | |
- | | + | borderColor: |
- | cursorBlink: | + | // custom CSS to embed in the main window |
- | + | css: '', | |
- | | + | // custom CSS to embed in the terminal window |
- | foregroundColor: | + | termCSS: '', |
- | + | // set custom startup directory (must be an absolute path) | |
- | | + | workingDirectory: |
- | // opacity is only supported on macOS | + | // if you're using a Linux setup which show native menus, set to false |
- | backgroundColor: | + | // default: `true` on Linux, `true` on Windows, ignored on macOS |
- | + | showHamburgerMenu: | |
- | | + | // set to `false` (without backticks and without quotes) if you want to hide the minimize, maximize and close buttons |
- | selectionColor: | + | // additionally, |
- | + | // default: `true` (without backticks and without quotes) on Windows and Linux, ignored on macOS | |
- | | + | showWindowControls: |
- | borderColor: | + | // custom padding (CSS format, i.e.: `top right bottom left`) |
- | + | padding: '12px 14px', | |
- | | + | // the full list. if you're going to provide the full color palette, |
- | css: '', | + | // including the 6 x 6 color cubes and the grayscale map, just provide |
- | + | // an array here instead of a color map object | |
- | | + | colors: { |
- | termCSS: '', | + | black: '# |
- | + | red: '# | |
- | // if you're using a Linux setup which show native menus, set to false | + | green: '# |
- | // default: `true` on Linux, `true` on Windows, ignored on macOS | + | yellow: '# |
- | showHamburgerMenu: | + | blue: '# |
- | + | magenta: '# | |
- | | + | cyan: '# |
- | // additionally, | + | white: '# |
- | // default: `true` (without backticks and without quotes) on Windows and Linux, ignored on macOS | + | lightBlack: '# |
- | showWindowControls: | + | lightRed: '# |
- | + | lightGreen: '# | |
- | | + | lightYellow: |
- | padding: '12px 14px', | + | lightBlue: '# |
- | + | lightMagenta: | |
- | | + | lightCyan: '# |
- | // including the 6 x 6 color cubes and the grayscale map, just provide | + | lightWhite: '# |
- | // an array here instead of a color map object | + | limeGreen: '# |
- | colors: { | + | lightCoral: '# |
- | black: '# | + | }, |
- | red: '# | + | // the shell to run when spawning a new session (i.e. / |
- | green: '# | + | // if left empty, your system' |
- | yellow: '# | + | // |
- | blue: '# | + | // Windows |
- | magenta: '# | + | // - Make sure to use a full path if the binary name doesn' |
- | cyan: '# | + | // - Remove `--login` in shellArgs |
- | white: '# | + | // |
- | lightBlack: '# | + | // Windows Subsystem for Linux (WSL) - previously Bash on Windows |
- | lightRed: '# | + | // - Example: `C: |
- | lightGreen: '# | + | // |
- | lightYellow: | + | // Git-bash on Windows |
- | lightBlue: '# | + | // - Example: `C: |
- | lightMagenta: | + | // |
- | lightCyan: '# | + | // PowerShell on Windows |
- | lightWhite: '# | + | // - Example: `C: |
+ | // | ||
+ | // Cygwin | ||
+ | // - Example: `C: | ||
+ | shell: '', | ||
+ | // for setting shell arguments (i.e. for using interactive shellArgs: `[' | ||
+ | // by default `[' | ||
+ | shellArgs: [' | ||
+ | // for environment variables | ||
+ | env: {}, | ||
+ | // Supported Options: | ||
+ | // 1. ' | ||
+ | // 2. false: turns off the bell | ||
+ | bell: ' | ||
+ | // An absolute file path to a sound file on the machine. | ||
+ | // bellSoundURL: | ||
+ | // if `true` (without backticks and without quotes), selected text will automatically be copied to the clipboard | ||
+ | copyOnSelect: | ||
+ | // if `true` (without backticks and without quotes), hyper will be set as the default protocol client for SSH | ||
+ | defaultSSHApp: | ||
+ | // if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no | ||
+ | // selection is present (`true` by default on Windows and disables the context menu feature) | ||
+ | quickEdit: false, | ||
+ | // choose either `' | ||
+ | // or `' | ||
+ | // (inside tmux or vim with mouse mode enabled for example). | ||
+ | macOptionSelectionMode: | ||
+ | // Whether to use the WebGL renderer. Set it to false to use canvas-based | ||
+ | // rendering (slower, but supports transparent backgrounds) | ||
+ | webGLRenderer: | ||
+ | // keypress required for weblink activation: [ctrl|alt|meta|shift] | ||
+ | // todo: does not pick up config changes automatically, | ||
+ | webLinksActivationKey: | ||
+ | // if `false` (without backticks and without quotes), Hyper will use ligatures provided by some fonts | ||
+ | disableLigatures: | ||
+ | // set to true to disable auto updates | ||
+ | disableAutoUpdates: | ||
+ | // set to true to enable screen reading apps (like NVDA) to read the contents of the terminal | ||
+ | screenReaderMode: | ||
+ | // set to true to preserve working directory when creating splits or tabs | ||
+ | preserveCWD: | ||
+ | // for advanced config flags please refer to https:// | ||
}, | }, | ||
- | + | | |
- | // the shell to run when spawning a new session (i.e. / | + | // format: [@org/ |
- | // if left empty, your system' | + | // examples: |
- | // | + | // |
- | // Windows | + | // |
- | // - Make sure to use a full path if the binary name doesn' | + | // |
- | // - Remove `--login` in shellArgs | + | plugins: [], |
- | // | + | // in development, |
- | // Bash on Windows | + | // `~/ |
- | // - Example: `C: | + | // to load it and avoid it being `npm install`ed |
- | // | + | localPlugins: |
- | // PowerShell on Windows | + | keymaps: { |
- | // - Example: `C: | + | |
- | shell: '', | + | |
- | + | ||
- | // for setting shell arguments (i.e. for using interactive shellArgs: `[' | + | |
- | // by default `[' | + | |
- | shellArgs: [' | + | |
- | + | ||
- | // for environment variables | + | |
- | env: {}, | + | |
- | + | ||
- | // set to `false` for no bell | + | |
- | bell: ' | + | |
- | + | ||
- | // if `true` (without backticks and without quotes), selected text will automatically be copied to the clipboard | + | |
- | copyOnSelect: | + | |
- | + | ||
- | // if `true` (without backticks and without quotes), hyper will be set as the default protocol client for SSH | + | |
- | defaultSSHApp: | + | |
- | + | ||
- | // if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no | + | |
- | // selection is present (`true` by default on Windows and disables the context menu feature) | + | |
- | quickEdit: false, | + | |
- | + | ||
- | // choose either `' | + | |
- | // or `' | + | |
- | // (inside tmux or vim with mouse mode enabled for example). | + | |
- | macOptionSelectionMode: | + | |
- | + | ||
- | // URL to custom bell | + | |
- | // bellSoundURL: | + | |
- | + | ||
- | // Whether to use the WebGL renderer. Set it to false to use canvas-based | + | |
- | // rendering (slower, but supports transparent backgrounds) | + | |
- | webGLRenderer: | + | |
- | + | ||
- | // for advanced config flags please refer to https:// | + | |
- | }, | + | |
- | + | ||
- | | + | |
- | // format: [@org/ | + | |
- | // examples: | + | |
- | // | + | |
- | // | + | |
- | // | + | |
- | plugins: [], | + | |
- | + | ||
- | | + | |
- | // `~/ | + | |
- | // to load it and avoid it being `npm install`ed | + | |
- | localPlugins: | + | |
- | + | ||
- | | + | |
// Example | // Example | ||
// ' | // ' | ||
- | | + | |
}; | }; | ||
- | </ | + | //# sourceMappingURL=config-default.js.map |
+ | </code></ | ||
</ | </ | ||
起動シェルを PowerShell に変更する。\\ | 起動シェルを PowerShell に変更する。\\ | ||
- | < | + | < |
- | <code javascript> | + | <WRAP color_mincode> |
- | // the shell to run when spawning a new session (i.e. / | + | // the shell to run when spawning a new session (i.e. / |
- | // if left empty, your system' | + | // if left empty, your system' |
- | // | + | // |
- | // Windows | + | // Windows |
- | // - Make sure to use a full path if the binary name doesn' | + | // - Make sure to use a full path if the binary name doesn' |
- | // - Remove `--login` in shellArgs | + | // - Remove `--login` in shellArgs |
- | // | + | // |
- | // Bash on Windows | + | // Windows Subsystem for Linux (WSL) - previously |
- | // - Example: `C: | + | // - Example: `C: |
- | // | + | // |
- | // PowerShell on Windows | + | // Git-bash on Windows |
- | // - Example: `C: | + | // - Example: `C: |
- | //shell: 'C:\\Users\\tomoyan\\scoop\\apps\\powershell\\current\\pwsh.exe', | + | // |
- | shell: 'C:\\ProgramData\\scoop\\apps\\powershell\\current\\pwsh.exe', | + | // PowerShell on Windows |
- | </ | + | // - Example: `C: |
+ | // | ||
+ | // Cygwin | ||
+ | // - Example: `C: | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | メモ\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_mincode_long>< | ||
+ | "use strict"; | ||
+ | // Future versions of Hyper may add additional config options, | ||
+ | // which will not automatically be merged into this file. | ||
+ | // See https:// | ||
+ | module.exports = { | ||
+ | config: { | ||
+ | opacity: 0.90, | ||
+ | wallpapers: [ | ||
+ | { | ||
+ | image: true, | ||
+ | filePath: 'C:/ | ||
+ | size: 'right bottom', | ||
+ | color: ' | ||
+ | }, | ||
+ | ], | ||
+ | // choose either `' | ||
+ | // or `' | ||
+ | updateChannel: | ||
+ | // default font size in pixels for all tabs | ||
+ | fontSize: 12, | ||
+ | // font family with optional fallbacks | ||
+ | fontFamily: '" | ||
+ | // default font weight: ' | ||
+ | fontWeight: ' | ||
+ | // font weight for bold characters: ' | ||
+ | fontWeightBold: | ||
+ | // line height as a relative unit | ||
+ | lineHeight: 1, | ||
+ | // letter spacing as a relative unit | ||
+ | letterSpacing: | ||
+ | // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | ||
+ | cursorColor: | ||
+ | // terminal text color under BLOCK cursor | ||
+ | cursorAccentColor: | ||
+ | // `' | ||
+ | cursorShape: | ||
+ | // set to `true` (without backticks and without quotes) for blinking cursor | ||
+ | cursorBlink: | ||
+ | // color of the text | ||
+ | foregroundColor: | ||
+ | // terminal background color | ||
+ | // opacity is only supported on macOS | ||
+ | // | ||
+ | backgroundColor: | ||
+ | // terminal selection color | ||
+ | selectionColor: | ||
+ | // border color (window, tabs) | ||
+ | borderColor: | ||
+ | // custom CSS to embed in the main window | ||
+ | css: '', | ||
+ | // custom CSS to embed in the terminal window | ||
+ | termCSS: '', | ||
+ | // set custom startup directory (must be an absolute path) | ||
+ | workingDirectory: | ||
+ | // if you're using a Linux setup which show native menus, set to false | ||
+ | // default: `true` on Linux, `true` on Windows, ignored on macOS | ||
+ | showHamburgerMenu: | ||
+ | // set to `false` (without backticks and without quotes) if you want to hide the minimize, maximize and close buttons | ||
+ | // additionally, | ||
+ | // default: `true` (without backticks and without quotes) on Windows and Linux, ignored on macOS | ||
+ | showWindowControls: | ||
+ | // custom padding (CSS format, i.e.: `top right bottom left`) | ||
+ | padding: '12px 14px', | ||
+ | // the full list. if you're going to provide the full color palette, | ||
+ | // including the 6 x 6 color cubes and the grayscale map, just provide | ||
+ | // an array here instead of a color map object | ||
+ | colors: { | ||
+ | black: '# | ||
+ | red: '# | ||
+ | green: '# | ||
+ | yellow: '# | ||
+ | blue: '# | ||
+ | magenta: '# | ||
+ | cyan: '# | ||
+ | white: '# | ||
+ | lightBlack: '# | ||
+ | lightRed: '# | ||
+ | lightGreen: '# | ||
+ | lightYellow: | ||
+ | lightBlue: '# | ||
+ | lightMagenta: | ||
+ | lightCyan: '# | ||
+ | lightWhite: '# | ||
+ | limeGreen: '# | ||
+ | lightCoral: '# | ||
+ | }, | ||
+ | // the shell to run when spawning a new session (i.e. / | ||
+ | // if left empty, your system' | ||
+ | // | ||
+ | // Windows | ||
+ | // - Make sure to use a full path if the binary name doesn' | ||
+ | // - Remove `--login` in shellArgs | ||
+ | // | ||
+ | // Windows Subsystem for Linux (WSL) - previously Bash on Windows | ||
+ | // - Example: `C:\\Windows\\System32\\wsl.exe` | ||
+ | // | ||
+ | // Git-bash on Windows | ||
+ | // - Example: `C:\\Program Files\\Git\\bin\\bash.exe` | ||
+ | // | ||
+ | // PowerShell on Windows | ||
+ | // - Example: `C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe` | ||
+ | // | ||
+ | // Cygwin | ||
+ | // - Example: `C:\\cygwin64\\bin\\bash.exe` | ||
+ | shell: 'pwsh.exe', | ||
+ | // for setting shell arguments (i.e. for using interactive shellArgs: `[' | ||
+ | // by default `[' | ||
+ | shellArgs: [' | ||
+ | // for environment variables | ||
+ | env: {}, | ||
+ | // Supported Options: | ||
+ | // 1. ' | ||
+ | // 2. false: turns off the bell | ||
+ | bell: ' | ||
+ | // An absolute file path to a sound file on the machine. | ||
+ | // bellSoundURL: | ||
+ | // if `true` (without backticks and without quotes), selected text will automatically be copied to the clipboard | ||
+ | copyOnSelect: | ||
+ | // if `true` (without backticks and without quotes), hyper will be set as the default protocol client for SSH | ||
+ | defaultSSHApp: | ||
+ | // if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no | ||
+ | // selection is present (`true` by default on Windows and disables the context menu feature) | ||
+ | quickEdit: false, | ||
+ | // choose either `' | ||
+ | // or `' | ||
+ | // (inside tmux or vim with mouse mode enabled for example). | ||
+ | macOptionSelectionMode: | ||
+ | // Whether to use the WebGL renderer. Set it to false to use canvas-based | ||
+ | // rendering (slower, but supports transparent backgrounds) | ||
+ | webGLRenderer: | ||
+ | // keypress required for weblink activation: [ctrl|alt|meta|shift] | ||
+ | // todo: does not pick up config changes automatically, | ||
+ | webLinksActivationKey: | ||
+ | // if `false` (without backticks and without quotes), Hyper will use ligatures provided by some fonts | ||
+ | disableLigatures: | ||
+ | // set to true to disable auto updates | ||
+ | disableAutoUpdates: | ||
+ | // set to true to enable screen reading apps (like NVDA) to read the contents of the terminal | ||
+ | screenReaderMode: | ||
+ | // set to true to preserve working directory when creating splits or tabs | ||
+ | preserveCWD: | ||
+ | // for advanced config flags please refer to https:// | ||
+ | }, | ||
+ | // a list of plugins to fetch and install from npm | ||
+ | // format: [@org/ | ||
+ | // examples: | ||
+ | // | ||
+ | // | ||
+ | // | ||
+ | plugins: [ | ||
+ | ' | ||
+ | ' | ||
+ | ], | ||
+ | // in development, | ||
+ | // `~/ | ||
+ | // to load it and avoid it being `npm install`ed | ||
+ | localPlugins: | ||
+ | keymaps: { | ||
+ | // Example | ||
+ | // ' | ||
+ | }, | ||
+ | }; | ||
+ | //# sourceMappingURL=config-default.js.map | ||
+ | </code></ | ||
</ | </ | ||