Skip to content

Instantly share code, notes, and snippets.

View boda-sh's full-sized avatar
🍱

boda boda-sh

🍱
View GitHub Profile
@boda-sh
boda-sh / config.fish
Created February 28, 2025 22:00
fish_prompt
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
{
"semi": false,
"singleQuote": true,
"printWidth": 120
}
@boda-sh
boda-sh / .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 \$ "
@boda-sh
boda-sh / 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);