Skip to content

Commit

Permalink
check rg installation
Browse files Browse the repository at this point in the history
  • Loading branch information
somecho committed May 12, 2023
1 parent cf48f9b commit 3295b35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ keepbooks -f 2023.ledger -d 2023/07/20 Sushi Bar Expenses:Restaurant Assets:Bank
A [Taskwarrior](https://github.com/GothenburgBitFactory/taskwarrior) hook to log latest modified task. This script is _not_ installed in `~/.local/bin`. Instead, it requires you to copy it to your Taskwarrior's hooks folder. This is usually `~/.task/hooks`. Every time a task is modified, it writed the UUID of the task in a file called `last-modified.data` in your Taskwarrior's `data.location`. **This hook is required for the [resumetask](#resumetask) script to work.**

### [projectsof](./projectsof.clj)
Searches the current working directory for project directories of a certain type. For example, calling `projectsof java` will return all the directories which are java projects.
Searches the current working directory for project directories of a certain type. For example, calling `projectsof java` will return all the directories which are java projects. **Requires [`rg`](https://github.com/BurntSushi/ripgrep) to run.**

#### Currently supported project types
1. Java
Expand Down
4 changes: 2 additions & 2 deletions projectsof.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"java" (find-java-projects)
(println "Project type not supported")))

(assign (first *command-line-args*))

(try (sh "rg") (catch Exception _ (println "rg is not installed")))

(assign (first *command-line-args*))

0 comments on commit 3295b35

Please sign in to comment.