jaywcjlove / jaywcjlove/linux-command

搭配 fzf 食用本项目

Open
#318 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Markdown
Stars
36.9k
Forks
6.6k
PR merge metrics
No merged PRs in 30d

Description

```bash
fl() {
dir="You_Commands_Dir"
commandsfile=$(find $dir -name '*.md' | sed "s#$dir/##; s/\.md//" | fzf --prompt='LinuxCommands> ' --preview "echo $dir/{}.md | xargs -r mdcat -p" | awk '{printf "'$dir'/%s.md", $1}')
if [ $commandsfile ]; then
mdcat -p $commandsfile
else
echo >> /dev/null
fi
}
```
![截屏2021-12-09 上午9 12 13](https://user-images.githubusercontent.com/88510062/145316648-179d274d-e317-45e6-939f-3f28a2502009.png)

Contributor guide

Open the contributing guide

Research direction

The issue contains a Bash function using fzf, find, awk, and mdcat, but names no repository file, test, or entry point to change. Start by locating the command or search documentation related to this project and determine where this integration belongs; done should include a clearly documented, working fzf-based usage path.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.