zsh & tree & macOS】的更多相关文章

zsh & tree & macOS https://unix.stackexchange.com/questions/22803/counting-files-in-leaves-of-directory-tree bug $ tree zsh: command not found: tree solutions https://blog.csdn.net/science_Lee/article/details/79565931 $ brew install tree https://b…
Linux用户类型 Root用户:超级管理员,权限很大 普通用户:权限有限 终端 terminal 终端类型 物理终端:鼠标.键盘.显示器 虚拟终端:软件模拟出来的终端 控制台终端: /dev/console 串行终端:/dev/ttyS# 虚拟终端:tty:teletypewriters, /dev/tty#,tty 可有n个,Ctrl+Alt+F# 图形终端:startx, xwindows 伪终端:pty:pseudo-tty , /dev/pts/# 如:SSH远程连接 说明 命令 查看…
VS Code & MacOS & Zsh https://code.visualstudio.com/docs/setup/mac solution OK bug $ cat .zshrc $ vim .zshrc # flutter PATH & zsh export PATH="$PATH:/Users/xgqfrms-mbp/Documents/Flutter/flutter/bin" # Add Visual Studio Code (code) #…
MacOS最近做了一个大版本升级,这次升级中对开发者有个很大的更新是,模式的shell变成了zsh,官方提供了升级配置文档:https://support.apple.com/zh-cn/HT208050 不过这个文档中的配置文件升级方法并不是很好用,用了下面的命令 [[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile' 之后,nvm启动有问题: command not found: complete 最后简单用copy文件的方式转…
shell 俗称壳,c 语言编写的命令解析器程序,是用户使用 linux 的桥梁. 目前常用的 Linux 系统和 OS X 系统的默认 Shell 都是 bash. zsh  和 bash 相似,且功能增强.但是配置过于复杂,直到国外有人开发出可以快速上手的oh-my-zsh. 安装zsh //macOS 系统自带了zsh, 一般不是最新版,如果需要最新版可通过Homebrew来安装(确认安装了Homebrew) zsh --version 先查看zsh是否是最新版本, 如果显示类似zsh 5…
安裝Homebrew 1 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 更新Homebrew 1 brew update 安裝wget 1 brew install wget 安裝zsh 1 brew install zsh 更新zsh 1 brew upgrade zsh 修改預設shell為zsh 1 $ chsh -s /usr/local/bin…
目前常用的 Linux 系统和 OS X 系统的默认 Shell 都是 bash,但是真正强大的 Shell 是深藏不露的 zsh, 这货绝对是马车中的跑车,跑车中的飞行车,史称『终极 Shell』,但是由于配置过于复杂,所以初期无人问津,很多人跑过来看看 zsh 的配置指南,什么都不说转身就走了.直到有一天,国外有个穷极无聊的程序员开发出了一个能够让你快速上手的zsh项目,叫做「oh my zsh」,Github 网址是:https://github.com/robbyrussell/oh-m…
使用dscl . -read /Users/$USER UserShell查看 如果你的结果是/bin/zsh,又恰巧用brew安装了zsh的话,那么你可能就白安装了 将brew安装的zsh添加到/etc/shell下,通常是/usr/local/bin/zsh 在进行chsh操作就可以使用新版本的zsh了…
Style:Mac Series:Java Since:2018-09-10 End:2018-09-10 Total Hours:1 Degree Of Diffculty:5 Degree Of Mastery:5 Practical Level:5 Desired Goal:5 Archieve Goal:3 Gerneral Evaluation:3 Writer:kingdelee Related Links: http://www.cnblogs.com/kingdelee/ 1.当…
进入home目录 cd ~ 修改.zprofile文件 vi .zprofile 按i进入vim插入模式,添加以下代码 export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home" export PATH="$PATH:$JAVA_HOME/bin" 键入:wq保存并退出vim 其中JAVA_HOME要对应自己电脑上安装的位置 执行source .zprofil…