add nv
This commit is contained in:
parent
fb467cab8a
commit
b2d16add0b
@ -52,6 +52,18 @@ configure_gpg() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configure_ux() {
|
||||||
|
# version: 0.9.8
|
||||||
|
[ -f ~/.local/bin/uv ] && return
|
||||||
|
|
||||||
|
if confirm_action "要安装 ux 吗?" "Y"; then
|
||||||
|
UV_INSTALLER_GHE_BASE_URL="$github" sh $scriptdir/files/install-uv.sh
|
||||||
|
if [ $abroad -ne 1 ]; then
|
||||||
|
cp $scriptdir/files/uv.toml ~/.config/uv/uv.toml
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
configure_miniconda() {
|
configure_miniconda() {
|
||||||
[ -d ~/.miniconda3 ] && return
|
[ -d ~/.miniconda3 ] && return
|
||||||
[ "$offline" -eq 1 ] && return
|
[ "$offline" -eq 1 ] && return
|
||||||
@ -141,6 +153,7 @@ configure_ssh
|
|||||||
configure_ssh_keygen
|
configure_ssh_keygen
|
||||||
configure_git
|
configure_git
|
||||||
configure_gpg
|
configure_gpg
|
||||||
|
configure_ux
|
||||||
configure_miniconda
|
configure_miniconda
|
||||||
configure_miniforge
|
configure_miniforge
|
||||||
configure_nvm
|
configure_nvm
|
||||||
|
|||||||
2080
files/install-uv.sh
Executable file
2080
files/install-uv.sh
Executable file
File diff suppressed because it is too large
Load Diff
3
files/uv.toml
Normal file
3
files/uv.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[index]
|
||||||
|
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
|
||||||
|
default = true
|
||||||
@ -2,3 +2,11 @@
|
|||||||
|
|
||||||
# ZSH_THEME="robbyrussell"
|
# ZSH_THEME="robbyrussell"
|
||||||
# PROMPT='%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})${HOST:-} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
|
# PROMPT='%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})${HOST:-} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
|
||||||
|
|
||||||
|
if [ -f "$HOME/.local/bin/env" ]; then
|
||||||
|
. "$HOME/.local/bin/env"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command_exists ipython3; then
|
||||||
|
alias ipy='ipython3'
|
||||||
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user