昨日当年

  • 配置 oh my zsh

    首先安装好 zsh

    apt install -y zsh git

    然后把 oh my zsh 克隆到本地,因为我的国内服务器访问不到github,所以要改一下地址,改成cnpm的加速镜像地址

    git clone https://github.com.cnpmjs.org/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
    (更多…)
    2021.3.16
    Bash, oh my zsh, shell, zsh

  • Bash添加多行到文件的方法

    cat <<EOT >> greetings.txt
    line 1
    line 2
    EOT

    方法二:

    echo "line 1
    line 2" >> greetings.txt

    参考:

    shell – How to append multiple lines to a file – Unix & Linux Stack Exchange

    2020.9.27
    Bash

京ICP备20023754号