This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_prompt | |
# TODO: set username here! | |
set -l current_path (pwd | string replace -r '^(/home/<your_username>)?/?' '~/' ) | |
set -l git_branch (git branch --show-current 2>/dev/null) | |
set -l virtualenv (if set -q VIRTUAL_ENV; echo "($VIRTUAL_ENV)"; end) | |
set_color -o yellow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"semi": false, | |
"singleQuote": true, | |
"printWidth": 120 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 \$ " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |