pj prefix for all functions

This commit is contained in:
2026-01-26 14:31:04 +08:00
parent 0a230f59f9
commit db8ec50581
5 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ if [[ $OS != "Darwin" ]]; then
return
fi
function brewthu() {
function pj_brewthu() {
if [[ $HOMEBREW_BOTTLE_DOMAIN = "" ]]; then
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"

View File

@@ -1,6 +1,6 @@
#!/bin/bash
function check_zsh_polyjuice() {
function pj_check() {
# check for zsh-autosuggestions
if [[ ! -f $ZSH_POLYJUICE_PLUGINS_PATH/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
echo "zsh-autosuggestions is not installed."
@@ -49,7 +49,7 @@ function check_zsh_polyjuice() {
echo "Using \`install_plugins\` function to install missing plugins."
}
function check_tools() {
function pj_check_tools() {
# check for git
if ! command -v git >/dev/null 2>&1; then
echo "Git is not installed."

View File

@@ -1,4 +1,4 @@
function starship_polyjuice() {
function pj_starship() {
local config_file_dir="$(dirname "$ZSH_POLYJUICE_STARSHIP_CONFIG_FILE")"
case "$1" in
list)

View File

@@ -1,4 +1,4 @@
function install_plugins() {
function pj_install_plugins() {
if ! command -v git >/dev/null 2>&1; then
echo "Git is not installed."
return