View copy-folders-exclude-node-modules.js
// 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); |
View .bash_profile
# 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 \$ " |