发布于 

Arch 的备忘录

Fish Shell

  1. 安装 fish
    1
    sudo pacman -S fish
  2. 设置 Fish Shell 为默认 shell
    1
    chsh -s /usr/bin/fish

安装 miniconda 3

Miniconda — Anaconda documentation

  1. 安装 从官网下载的 参考: Illegal Instruction error when verifying Anaconda/Miniconda Install - Stack Overflow
    选择下载 py39_4.92
    1
    2
    wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.9.2-Linux-aarch64.sh  # 下载
    sudo bash ./Miniconda3-py39_4.9.2-Linux-aarch64.sh
    一路 enter 下去即可,这里选择的安装地址是 /opt/miniconda3
  2. 配置Bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 在/home/xxx/.bashrc 文件中添加
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/miniconda3/etc/profile.d/conda.sh" ]; then
. "/opt/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/opt/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<

# 保存文件后运行
source .bashrc
Fish
1
2
3
4
# Bash shell
conda init fish
# 配置文件在/home/xxx/.config/fish/config.fish
set -gx CONDA_LEFT_PROMPT 1 # 在左侧显示环境名称