Skip to content

Instantly share code, notes, and snippets.

View bodaso's full-sized avatar
🍱

boda bodaso

🍱
View GitHub Profile
{
"semi": false,
"singleQuote": true,
"printWidth": 120
}
@bodaso
bodaso / .bash_profile
Created January 9, 2019 20:07
Minimal Bash shell prompt
# in ~/.bash_profile
# \W The basename of $PWD, with $HOME abbreviated with a tilde
# full list: https://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html
export PS1="\W \$ "
@bodaso
bodaso / copy-folders-exclude-node-modules.js
Last active April 4, 2018 18:32
Copy a folder and subfolders without all the `node_modules` folders within... tested with Node v9.10.1
// yarn add fs-extra --dev
const fs = require("fs-extra");
console.log("*** start ***");
// replace ".src" with your own folder
fs
.copy("./src", "./dist", {
filter: path => {
// console.log("path ===", path);