Skip to content

Instantly share code, notes, and snippets.

View christopherstott's full-sized avatar

Christopher Stott christopherstott

View GitHub Profile
@christopherstott
christopherstott / package.json
Created November 14, 2017 17:43
log-colors 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",
@christopherstott
christopherstott / import_zsh_history_to_fish.js
Created January 23, 2016 23:39
Import ZSH history to Fish
'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 {