diff --git a/zsh/functions/interactive_cd.sh b/zsh/alias/interactive_cd.sh similarity index 100% rename from zsh/functions/interactive_cd.sh rename to zsh/alias/interactive_cd.sh diff --git a/zsh/functions/brew.sh b/zsh/functions/brew.sh index fafe3ba..b0abe85 100644 --- a/zsh/functions/brew.sh +++ b/zsh/functions/brew.sh @@ -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" diff --git a/zsh/functions/check.sh b/zsh/functions/check.sh index f7f3387..6c7af95 100644 --- a/zsh/functions/check.sh +++ b/zsh/functions/check.sh @@ -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." diff --git a/zsh/functions/config_starship.sh b/zsh/functions/config_starship.sh index a936ab5..8df1306 100644 --- a/zsh/functions/config_starship.sh +++ b/zsh/functions/config_starship.sh @@ -1,4 +1,4 @@ -function starship_polyjuice() { +function pj_starship() { local config_file_dir="$(dirname "$ZSH_POLYJUICE_STARSHIP_CONFIG_FILE")" case "$1" in list) diff --git a/zsh/functions/install.sh b/zsh/functions/install.sh index 739fbb3..fbe68cd 100644 --- a/zsh/functions/install.sh +++ b/zsh/functions/install.sh @@ -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