Skip to content

Instantly share code, notes, and snippets.

Christopher Stott christopherstott

View GitHub Profile
@christopherstott
christopherstott / package.json
Created Nov 14, 2017
log-colors package.json
View package.json
{
"name": "log-colors",
"version": "1.0.0",
"description": "A colorized winston console logger",
"main": "index.js",
"scripts": {
"test": "node_modules/.bin/mocha --reporter spec"
},
"repository": {
"type": "git",
View import_zsh_history_to_fish.js
'use strict';
const fs = require('fs');
const expandHomeDir = require('expand-home-dir');
const zshHistoryRaw = fs.readFileSync(expandHomeDir('~/.zsh_history'), 'utf8');
const zshHistoryLines = zshHistoryRaw.split('\n');
const transformLine = line => {
try {
You can’t perform that action at this time.