@2501-ai/cli
Version:
[](https://www.npmjs.com/package/@2501-ai/cli) [](https://www.2501.ai/research/full-humaneval-benchmark) [![Lic
31 lines (30 loc) • 904 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.unixSourceCommand = void 0;
const actions_1 = require("../helpers/actions");
exports.unixSourceCommand = `
if [ -n "$ZSH_VERSION" ]; then
# Zsh shell
if [ "$(uname)" = "Darwin" ]; then
echo "source ~/.zshrc" # macOS
else
echo "source ~/.zshrc" # Linux
fi
elif [ -n "$BASH_VERSION" ]; then
# Bash shell
if [ "$(uname)" = "Darwin" ]; then
echo "source ~/.bash_profile" # macOS
else
echo "source ~/.bashrc" # Linux
fi
elif [ -n "$FISH_VERSION" ]; then
# Fish shell
if [ "$(uname)" = "Darwin" ]; then
echo "source ~/.config/fish/config.fish" # macOS
else
echo "source ~/.config/fish/config.fish" # Linux
fi
else
echo "${actions_1.ERROR_BOL} Unsupported shell. Please source the appropriate RC file manually."
fi
`;