Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
const SLACK_WEBHOOK_URL = "https://hooks.slack.com/services/XXX/YYY/ZZZZZ"; | |
async function sendSlackRequest({ text, blocks }) { | |
const postToSlack = await fetch(SLACK_WEBHOOK_URL, { | |
body: JSON.stringify({ text, blocks }), | |
method: "POST", | |
headers: { "Content-Type": "application/json" }, | |
}); | |
} |
Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish