Skip to content

lukasfischer1998/woodyLS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bash Script Linux

WoodyLS aka. Enhanced Tree Command

This was actually just a learning project for me, but I now use the command regularly. It's just my version of the tree command with a few less options so far but with icons. Verison: 1.0.0

Example Output

Features

Functionality

  • Recursive directory listing (-r option)
  • Hidden file visibility (-a option)
  • Symlink detection with target paths
  • Set custom recursion depth

Installation

Method: Quick Install (with alias)

# Clone repository
git clone https://github.com/lukasfischer1998/woodyLS.git ~/.tree-command

# Make executable
chmod +x ~/.tree-command/bin/woodyLS.sh

# Add to shell config (choose one):
echo 'alias tree="~/.tree-command/bin/woodyLS.sh"' >> ~/.bashrc  # Bash
echo 'alias tree="~/.tree-command/bin/woodyLS.sh"' >> ~/.zshrc   # Zsh

# Reload shell
source ~/.bashrc  # or source ~/.zshrc

# Check Install
tree --version

Usage

tree [OPTIONS]
-r, --recursive         Show recursive directory tree
-a, --all               Show hidden files
-d, --dirs-only         Show directories only
-i, --include-ignored   Show normally ignored directories ( node_modules etc.)
-rd, -dr                Show recursive directories only
-ra, -ar                Show recursive with hidden files
-rdep, --re-depth       Set custom recursion depth ('--re-depth 2')
-f, --filter EXT        Filter files by extension ('--filter=.txt')
-v, --version           Show version information
-h, --help              Show help message

Built With

  • Bash 5.0+
  • Unicode 13
  • ANSI Colors

License

MIT License - See License file

About

alternative to the standard tree command with Icons

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages