pj prefix for all functions
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function starship_polyjuice() {
|
||||
function pj_starship() {
|
||||
local config_file_dir="$(dirname "$ZSH_POLYJUICE_STARSHIP_CONFIG_FILE")"
|
||||
case "$1" in
|
||||
list)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user