mv
This commit is contained in:
parent
f3a6a848d5
commit
992d79c125
1 changed files with 21 additions and 21 deletions
|
@ -765,27 +765,6 @@ nameserver ${value}
|
|||
fi
|
||||
}
|
||||
|
||||
spcd_python_ln() {
|
||||
local command="${1}"
|
||||
if [ -n "${command}" ]; then
|
||||
echo "→ ${SPCD_PYTHON_ALIAS} → ${command}"
|
||||
ln -f -s "${command}" \
|
||||
"/usr/bin/${SPCD_PYTHON_ALIAS}"
|
||||
fi
|
||||
}
|
||||
|
||||
spcd_python_pip() {
|
||||
if [ -n "${1}" ]; then
|
||||
local name path target
|
||||
name="$(basename "${1}")"
|
||||
path="$(spcd_f_git_clone "${1}")"
|
||||
path="${path}/${name}"
|
||||
target="${SPCD_PYTHON_VENV_PACKAGES}"
|
||||
cp --recursive "${path}" "${target}"
|
||||
echo "${target}/${name}"
|
||||
fi
|
||||
}
|
||||
|
||||
# ╭───┬──────────────────────────────╮
|
||||
# │ f │ ca = certificate authorities │
|
||||
# ╰───┴──────────────────────────────╯
|
||||
|
@ -1028,6 +1007,27 @@ spcd_f_pm_pkg_upgrade() {
|
|||
# │ f │ py = python │
|
||||
# ╰───┴─────────────╯
|
||||
|
||||
spcd_python_ln() {
|
||||
local command="${1}"
|
||||
if [ -n "${command}" ]; then
|
||||
echo "→ ${SPCD_PYTHON_ALIAS} → ${command}"
|
||||
ln -f -s "${command}" \
|
||||
"/usr/bin/${SPCD_PYTHON_ALIAS}"
|
||||
fi
|
||||
}
|
||||
|
||||
spcd_python_pip() {
|
||||
if [ -n "${1}" ]; then
|
||||
local name path target
|
||||
name="$(basename "${1}")"
|
||||
path="$(spcd_f_git_clone "${1}")"
|
||||
path="${path}/${name}"
|
||||
target="${SPCD_PYTHON_VENV_PACKAGES}"
|
||||
cp --recursive "${path}" "${target}"
|
||||
echo "${target}/${name}"
|
||||
fi
|
||||
}
|
||||
|
||||
# ╭───┬─────╮
|
||||
# │ f │ txt │
|
||||
# ╰───┴─────╯
|
||||
|
|
Loading…
Reference in a new issue