A guide to setup your WSL with Hyper and zsh
- Follow the very thorough instructions here
- Download Hyper.js here - I went with the 'hyperblue' theme.
| #!/usr/bin/env node | |
| const { exec } = require('child_process') | |
| const findNumber = arg => !isNaN(parseInt(arg, 10)) | |
| const port = process.argv.find(findNumber) | |
| const execCommand = command => | |
| new Promise((resolve, reject) => |
| var sugar_data = [ | |
| { | |
| "title": "Corn Sugar", | |
| "search_term": "corn+sugar", | |
| "factor": 4, | |
| "weightfactor": 1, | |
| "volumedivide": 200, | |
| "volumefactor": 1 | |
| }, | |
| { |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| continuation_indent_size = 4 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true | |
| [*.md] |
| { | |
| "camelcase": true, | |
| "eqeqeq": true, | |
| "esnext": true, | |
| "eqnull": true, | |
| "indent": 2, | |
| "latedef": true, | |
| "newcap": true, | |
| "node": true, | |
| "quotmark": "single", |
| { | |
| // -------------------------------------------------------------------- | |
| // JSHint Configuration, Strict Edition | |
| // -------------------------------------------------------------------- | |
| // | |
| // This is a options template for [JSHint][1], using [JSHint example][2] | |
| // and [Ory Band's example][3] as basis and setting config values to | |
| // be most strict: | |
| // | |
| // * set all enforcing options to true |