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. Spark中的Join类型

    常规连接: 左半连接: 左半连接结果集:仅仅保留左边表中的行,这些行的joinkey出现在右边表中!!!(类似于leftTable.joinKey in (rightTable.joinKeys)). ...

  2. 屏蔽右键+f12

    function disableInfo() { document.onkeydown = function() { var e = window.event || arguments[0]; //屏 ...

  3. 009_python魔法函数

    11. (译)Python魔法方法指南 原文: http://www.rafekettler.com/magicmethods.html 原作者: Rafe Kettler 翻译: hit9 原版(英 ...

  4. 微信硬件平台(八) 3-0ESP8266向微信服务器请求设备绑定的用户

    1调试助手 请求URL: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=自己微信ID&a ...

  5. Spring Security(二十七):Part II. Architecture and Implementation

    Once you are familiar with setting up and running some namespace-configuration based applications, y ...

  6. 如何让Node.js运行在浏览器端

    Node.js又称服务端JavaScript.今天我为了解决一个问题,通过搜索引擎找到了如何将Node.js转成浏览器端可以运行的javascript.尽管这种方式有其局限性,但是还是可以用的. 1. ...

  7. Tomcat的九个内置对象

    在之前学习过程中使用的对象大部分都是我们自己使用new关键字或者反射创建的,现在容器中会自动创建对象,我们只要直接使用即可,不需要我们再去创建这些对象,在Tomcat容器中提供了九种内置对象,有一些不 ...

  8. k8s 节点的 NodeAffinity 使用

    apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 kind: Deployment metadata: name: vi ...

  9. Sqlserver内存管理:限制最大占用内存(转载)

    一.Sqlserver对系统内存的管理原则是:按需分配,且贪婪(用完不还).它不会自动释放内存,因此执行结果集大的sql语句时,数据取出后,会一直占用内存,直到占满机器内存(并不会撑满,还是有个最大限 ...

  10. BZOJ1004 HNOI2008 Cards Burnside、背包

    传送门 在没做这道题之前天真的我以为\(Polya\)可以完全替代\(Burnside\) 考虑\(Burnside\)引理,它要求的是对于置换群中的每一种置换的不动点的数量. 既然是不动点,那么对于 ...