Skip to content

Commit ccb35ea

Browse files
committed
add shell alias
1 parent cc60452 commit ccb35ea

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ Exercise downloader for https://rustplatform.com/
2424
```
2525
You can find your API key on your [profile page](https://rustplatform.com/profile/).
2626
27+
### Navigating exercises
28+
29+
Once downloaded, use [fzf](https://github.com/junegunn/fzf) to quickly jump between exercise directories:
30+
31+
```bash
32+
cdf() {
33+
local dir
34+
dir=$(find . -type d | fzf --reverse --prompt='cd to> ') || return
35+
cd "$dir"
36+
}
37+
```
38+
39+
Add this to your shell profile, then type `cdf` to fuzzy-search and `cd` into any exercise.
40+
2741
### Compile it manually
2842
2943
Maybe you want to have a look at the code and make some changes.

0 commit comments

Comments
 (0)