tmate

Install with

brew install tmate

Run with

tmate

then copy and paste the ssh string for another person to share your session.

Exit with

exit(or Ctrl d)

https://tmate.io/

 

SCROLLING

If you want to page up / down in the buffer enable the mode with:

CTRL b then [

then

Page Up / Page Down (i.e. Fn + Up arrow / Down arrow).

Use ESCto exit this mode.

https://superuser.com/questions/210125/scroll-shell-output-with-mouse-in-tmux?rq=1

 

tree – only show files with matching file name but not directories that don’t contain the file

I want to use tree to only show files that match a specific file name. E.g. filename.

The man page says:

However, I don’t want to show¬† directories that don’t contain that file.

Here’s how:

tree . -P filename --prune

and if you want to match on directories too then use:

tree . -P *match string* --matchdirs --prune

 

Making this an alias:

alias treefind="tree . --prune --matchdirs -P" so you can use it like this:

treefind some_file