This file contains hidden or 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
#!/bin/bash | |
set -euo pipefail | |
# Load NVM (needed in non-interactive scripts) | |
export NVM_DIR="$HOME/.nvm" | |
if [ -s "$NVM_DIR/nvm.sh" ]; then | |
. "$NVM_DIR/nvm.sh" | |
else | |
echo "ERROR: NVM not found at $NVM_DIR. Is it installed?" | |
exit 1 |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
USAGE="Usage: | |
git-checkout-default <remote>" | |
# show help if requested | |
if [ "x$1" == "x-h" ] || [ "x$1" == "x-?" ] || [ "x$1" == "x--help" ]; then | |
echo "Switch to the default branch of a specified remote git repository." |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -e | |
trap "exit" INT | |
USAGE="Usage: | |
fesd <command>" | |
# show help if requested | |
if [ "x$1" == "x-h" ] || [ "x$1" == "x-?" ] || [ "x$1" == "x--help" ]; then |