Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How to get tree -a to ignore .git directories?

You need to use the -I flag to exclude a pattern:

tree -a -I '.git'

Hope it helps.


I wrote a node based clone of tree called tree-fiddy that honors gitignore settings. It's pretty alpha right now, but it's working fine on my machines.

Tags:

Linux

Unix

Macos

Terminal

Related

Is there a quick way to indent tags in org-mode? Disable Microsoft Virtual WiFi Miniport Adapter Permanantly PATH set before /etc/zshenv How can I pipe console output directly to Notepad? How to examine source code of Firefox extension before installing it? How to empty file cache on Mac 10.9.3 Sudo vs root; any actual differences? Configuring Proof general for Coq in emacs How to list installed packages that depend on another installed package in Debian? How to insert enough spaces to align text to column number using Vim? OCR for numbers with gray noisy background How do I make Microsoft Arc Touch Mouse middle-click on single touch?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy