[软件服务] macos安装zsh+ohmyzsh

date
Dec 17, 2024
slug
newsoftware-macos-ohmyzsh
status
Published
summary
新软件-
tags
software
service
type
Post
URL
 
 

Summary

    安装过程

    
    cat /etc/shells
    
    # 查看
    echo $(which zsh)
    # 设置
    chsh -s $(which zsh)
    # 查检-需要关闭终端重新打开后生效
    echo $SHELL
    
    git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
    
    
    # cp 配置文件
    cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
    # or
    scp -P 42422 $HOME/.zshrc use-name@10.13.0.42:~/
    
    
    # 插件
    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions 
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    

    截图

    Raw

     

    © Ying Bun 2021 - 2025