Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Use 'type' To Figure Out Which File A bash Function Is In

I write a bunch of little functions for frequently used command line commands. For example, I have this for browser - sync in my dotfiles :

bash
function bs () {

browser-sync . --port 3939 \
--watch --directory \
--no-notify --no-inject-changes

}

The problem is I can never remember I put those file.

Using [TODO: Code shorthand span ] or [TODO: Code shorthand span ] doesn't show the file location. Just the function or its name.

[TODO: Code shorthand span ] gets you to the file path though :

bash
type bs
results start

Footnotes And References