MacOS Guide Chapter 3¶
some interesting plugins and APPs in zsh
tree¶
tree
is a recursive directory listing command that produces a depth indented listing of files.
Installation¶
To install the latest version, use homebrew:
Text Only | |
---|---|
1 |
|
Usage¶
Running tree
will produce output like this:
Text Only | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
To limit the recursion you can pass an -L
flag and specify the maximum depth tree
will use when searching.
Text Only | |
---|---|
1 |
|
will output:
Text Only | |
---|---|
1 2 3 4 5 6 7 8 9 |
|
fzf¶
fzf
is a general-purpose command-line fuzzy finder. On it's own it's not very useful but when combined with other tools it becomes super powerful.
Installation¶
Use Homebrew to install fzf
:
Text Only | |
---|---|
1 |
|
If you want to use shell extensions (better shell integration):
Text Only | |
---|---|
1 |
|
which gives you:
- Key bindings (
CTRL-T
,CTRL-R
, andALT-C
) (available for bash, zsh and fish) - Fuzzy auto-completion (available for bash and zsh)
Example Usages¶
Add any of these functions to your shell configuration file and apply the changes to try them out. Or just paste the function in your terminal if you just want to try it out without saving it.
Text Only | |
---|---|
1 2 3 4 5 6 7 |
|
Text Only | |
---|---|
1 2 3 4 |
|
For more fuzzy search examples see the official repo.
Chrome history from your terminal¶
Note: original blog post
Open up your shell config and add following function:
Text Only | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Note: Ensure that path to History
file is correct; read more information on StackOverflow.
ack¶
ack
is a search tool designed for code. It's built to be a replacement for grep
with higher speed and more options.
Installation¶
To install the latest version, use homebrew.
Text Only | |
---|---|
1 |
|
Why use ack
over grep
¶
- Faster
- Skips unimportant files by default
- It searches recursively by default
- Customizable
Usage¶
Text Only | |
---|---|
1 |
|
Let's say you want to find all JavaScript files that are using the module pancakes
in your project, with ack
it's as easy as
Text Only | |
---|---|
1 |
|
Or you may want to find all files that does not contain the word brew
Text Only | |
---|---|
1 |
|
Customization¶
You can customize ack
to behave the way you want it to, this configuration i s stored in /.ackrc
.
For example, you can add a custom type to use as a flag when searching. The following configuration will allow you to only search in .md
, .mkd
and .markdown
files using the --markdown
flag.
Text Only | |
---|---|
1 |
|
You can also tell ack to always sort and use colors in the result.
Text Only | |
---|---|
1 2 |
|
To see what configuration ack
uses you can use the dump
flag.
Text Only | |
---|---|
1 |
|
Alternatives to ack
¶
There's The Silver Surfer which describes itself as a
A code searching tool similar to
ack
, with a focus on speed.
htop¶
showcase all the PID and CPU processing currently
Bash | |
---|---|
1 |
|
lsd¶
showcase the flies and folders with more intuitive in terminal
Bash | |
---|---|
1 |
|
duf¶
showcase the occupation in terminal
Bash | |
---|---|
1 |
|
Bash | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
gping¶
Bash | |
---|---|
1 |
|
Bash | |
---|---|
1 |
|
lsd¶
lsd is a rewrite of GNU ls with lots of added features like colors, icons, tree-view, more formatting options etc. The project is heavily inspired by the super colorls project.
Bash | |
---|---|
1 |
|
Parallels Desktop Crack¶
PD is commonly used in our daily develop
QuickRecorder¶
QuickRecorder is a lightweight screen recorder based on ScreenCapture Kit for macOS
Bash | |
---|---|
1 |
|
BLEUnlock¶
This plugin is a small menu bar utility that locks and unlocks your Mac by proximity of your iPhone, Apple Watch, or any other Bluetooth Low Energy device.
stats¶
stats is a replacement of iStat Menus
It's a macOS system monitor in your menu bar
bartender 5¶
bartender is an award-winning app for macOS that for more than 10 years has superpowered your menu bar, giving you total control over your menu bar items, what's displayed, and when, with menu bar items only showing when you need them.
Bartender improves your workflow with quick reveal, search, custom hotkeys and triggers, and lots more.
暴力开源版:bartender-ru