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://blog.csdn.net/u011781521/article/details/53868616

$ vim .bash_profile
# 增加
# export PATH=/bin:/usr/bin:/usr/local/bin:$PATH $ source .bash_profile # .zshrc 中添加一行
# source ~/.bash_profile

http://yijiebuyi.com/blog/c0defa3a47d16e675d58195adc35514b.html

https://zhuanlan.zhihu.com/p/43704296


https://www.cnblogs.com/xgqfrms/p/9491946.html


# all
$ tree # folder only
$ tree -d # src folder
$ tree src # ignore folder
$ tree -I "node_modules*"

Linux & Alias

10个Linux命令别名

https://zhuanlan.zhihu.com/p/53011698


chmod +x ???



➜ ~ brew install tree
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
adwaita-icon-theme gitmoji passenger
ammonite-repl glooctl proteinortho
angular-cli helmfile pulumi
ansible hugo root
apib icecream s-lang
apr-util istioctl serverless
auditbeat kibana skaffold
bison libsoup snakemake
bit logstash snapcraft
ccache metricbeat snownews
codespell miller sshfs
conan minio starship
docfx nats-streaming-server traefik
elasticsearch netdata webpack
exploitdb netlify-cli wtfutil
firebase-cli opa
fonttools openssl@1.1 Error: The following directories are not writable by your user:
/usr/local/share/man/man5
/usr/local/share/man/man7 You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/share/man/man5 /usr/local/share/man/man7 And make sure that your user has write permission.
chmod u+w /usr/local/share/man/man5 /usr/local/share/man/man7
➜ ~

solution

OK

$ sudo chown -R $(whoami) /usr/local/share/man/man5 /usr/local/share/man/man7

$ chmod u+w /usr/local/share/man/man5 /usr/local/share/man/man7

$ brew install tree

not work

$ cat .zshrc

$ vim .zshrc

# add

# i

# :ws

$ touch .bash_profile

$ source .bash_profile

# ..bash_profile

https://stackoverflow.com/questions/39037537/how-to-set-bash-profile-if-it-does-not-exist-yet-i-want-to-launch-sublime-fro


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

  1. Linux命令格式、终端类型和获取帮助的方法

    Linux用户类型 Root用户:超级管理员,权限很大 普通用户:权限有限 终端 terminal 终端类型 物理终端:鼠标.键盘.显示器 虚拟终端:软件模拟出来的终端 控制台终端: /dev/con ...

  2. VS Code & MacOS & Zsh

    VS Code & MacOS & Zsh https://code.visualstudio.com/docs/setup/mac solution OK bug $ cat .zs ...

  3. macOS Catalina 的zsh升级

    MacOS最近做了一个大版本升级,这次升级中对开发者有个很大的更新是,模式的shell变成了zsh,官方提供了升级配置文档:https://support.apple.com/zh-cn/HT2080 ...

  4. MacOS使用zsh & oh-my-zsh

    shell 俗称壳,c 语言编写的命令解析器程序,是用户使用 linux 的桥梁. 目前常用的 Linux 系统和 OS X 系统的默认 Shell 都是 bash. zsh  和 bash 相似,且 ...

  5. 設定MacOS 終端機環境 (Homebrew/zsh/oh-my-zsh/iTerm2)

    安裝Homebrew 1 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in ...

  6. macOS安装「oh my zsh」

    目前常用的 Linux 系统和 OS X 系统的默认 Shell 都是 bash,但是真正强大的 Shell 是深藏不露的 zsh, 这货绝对是马车中的跑车,跑车中的飞行车,史称『终极 Shell』, ...

  7. 查看macOS下正在使用的zsh

    使用dscl . -read /Users/$USER UserShell查看 如果你的结果是/bin/zsh,又恰巧用brew安装了zsh的话,那么你可能就白安装了 将brew安装的zsh添加到/e ...

  8. 【Mac】-NO.161.Mac.1 -【MacOS 中环境变量设置 zsh: command not found: xxx】

    Style:Mac Series:Java Since:2018-09-10 End:2018-09-10 Total Hours:1 Degree Of Diffculty:5 Degree Of ...

  9. MacOS上zsh环境设置默认jdk

    进入home目录 cd ~ 修改.zprofile文件 vi .zprofile 按i进入vim插入模式,添加以下代码 export JAVA_HOME="/Library/Java/Jav ...

随机推荐

  1. 【转】iOS-浅谈revoke证书对App的影响

    参考资料:证书-来自苹果官方的介绍 revoke证书对生产.测试环境的影响(1)revoke生产环境证书是不会影响已上架的app. (2)revoke开发环境证书,则安装过该证书的app的用户将无法打 ...

  2. (二 -4) 天猫精灵接入Home Assistant-自动发现Mqtt设备--传感器系列

    https://www.home-assistant.io/blog/2015/10/11/measure-temperature-with-esp8266-and-report-to-mqtt/ 最 ...

  3. python3 day04 大纲

    上节课内容回顾: 1. 小数据池 存储数据. 共享小数据池 int,str, bool == 和 is区别: == 判断的是两边的值 is 左右两端的内存地址 2. 深浅拷贝 1. = 没有创建新对象 ...

  4. java eclipse jdk 关系

    java 经常用到多个jdk版本 1.7   1.8.... 兼容时几个位置 处理 eclipse.ini (A处) #-vm#C:\Program Files\Java\jdk1.7.0_79\bi ...

  5. JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

    今天使用Eclipse+Maven建立了一个Javaweb工程,并在eclipse中配置了Web容器Jboss eap 6.2.新建jsp页面,添加一个简单 的Java类.可是,JSP页面顶端出现“红 ...

  6. A2D JS框架

    写了个微型JS框架 主要实现了:showDialog.noConflict.定位元素.event绑定功能 使用端的代码: <head> <title></title> ...

  7. 52ABP模板 ASP.Net Core 与 Angular的开源实例项目

    阅读文本大概需要 5 分钟. 开始之前 自从上一篇文章".NET:持续进化的统一开发平台"发布后,已经有三个月的时间没有写过文章了. 这段时间,做了两场线下活动,一场在上海,一场在 ...

  8. UVA - 12716 - 异或序列

    求满足GCD(a,b) = a XOR b; 其中1<=b <=a<=n. 首先做这道题需要知道几个定理: 异或:a XOR b = c 那么 a XOR c = b; 那么我们令G ...

  9. C++入门之初话多态与虚函数

    多态性是面向对象程序设计的又一个重要思想,关于多态的详尽描述,请看本人的收藏https://www.cnblogs.com/hust-ghtao/p/3512461.html.这篇博文中,详尽的探讨了 ...

  10. c++入门之再话命名空间的意义

    c++中使用了命名空间这一概念,通过下面这个代码,我们将深刻认识到命名空间的重要作用和意义: # include"iostream" using namespace std; na ...