javascript 使用Fira Code的Hyper.js终端设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript 使用Fira Code的Hyper.js终端设置相关的知识,希望对你有一定的参考价值。

module.exports = {
  config: {
    // default font size in pixels for all tabs
    fontSize: 24,

    // font family with optional fallbacks
    fontFamily: '"Fira Code", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',

    // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
    cursorColor: '#1df9ca',

    // `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █
    cursorShape: 'BLOCK',

    // color of the text
    foregroundColor: '#fff',

    // terminal background color
    backgroundColor: '#0f111d',

    // border color (window, tabs)
    borderColor: '#1df9ca',

    // custom css to embed in the main window
    css: '',

    // custom css to embed in the terminal window
    termCSS: `
    x-screen x-row {
        font-variant-ligatures: initial;
    }
    `,

    // custom padding (css format, i.e.: `top right bottom left`)
    padding: '15px 15px',

    // 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
    // Set the theme variant,
    colors: {
      black: '#000000',
      red: '#F33F75',
      green: '#91F894',
      yellow: '#E5F99F',
      blue: '#4E93F4',
      magenta: '#fd90ff',
      cyan: '#8AEFFF',
      white: '#FCFCFC',

      // Light Colors
      lightBlack: '#84858f',
      lightRed: '#F33F75',
      lightGreen: '#91F894',
      lightYellow: '#E5F99F',
      lightBlue: '#D7C5FB',
      lightMagenta: '#fd90ff',
      lightCyan: '#A8D1FF',
      lightWhite: '#FFFBFA'
    },

    // the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
    // if left empty, your system's login shell will be used by default
    shell: 'c:\\windows\\system32\\bash.exe',

    // for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
    // by default ['--login'] will be used
    shellArgs: ['--login'],

    // for environment variables
    env: {},

    // set to false for no bell
    bell: 'SOUND',

    // if true, selected text will automatically be copied to the clipboard
    copyOnSelect: true

    // URL to custom bell
    // bellSoundURL: 'http://example.com/bell.mp3',
    // for advanced config flags please refer to https://hyper.is/#cfg
  },

  // a list of plugins to fetch and install from npm
  // format: [@org/]project[#version]
  // examples:
  //   `hyperpower`
  //   `@company/project`
  //   `project#1.0.1`
  // "hyperterm-mactabs",
  // 'hyper-sierra-vibrancy',
  plugins: [ "hyperblue-vibrancy", "hyper-statusline", "hyperterm-tab-icons", "hyperterm-close-on-left", "hyperterm-paste", "hyperlinks", "hypercwd", "hypertitle"],

  // in development, you can create a directory under
  // `~/.hyper_plugins/local/` and include it here
  // to load it and avoid it being `npm install`ed
  localPlugins: [],
};

以上是关于javascript 使用Fira Code的Hyper.js终端设置的主要内容,如果未能解决你的问题,请参考以下文章

令人舒适的编程字体——Fira Code

Fira Code字体安装与配置

安装并在VSCode中配置Code Fira

安装并在VSCode中配置Code Fira

安装并在VSCode中配置Code Fira

为写程序而生的连字字体 Fira Code