Skip to content

Commit

Permalink
add pro tip
Browse files Browse the repository at this point in the history
  • Loading branch information
moiSentineL committed Jul 10, 2024
1 parent a9359d9 commit fce2088
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Start a flow by:
flomo s
```

Start a flow with tag "work" and "math" as session name:
Start a flow with tag `work` and `math` as session name:

```bash
flomo s -t work -n "math"
Expand All @@ -104,6 +104,12 @@ flomo --help
start (s) Start a Flowmodoro session.
```

#### Pro Tip for Linux Users

If you have to repeat working on certain tags (or sessions) and don't want to keep typing the commands every time, you can create a simple script like [study.sh](https://raw.githubusercontent.com/moiSentineL/flomo/main/docs/study.sh), and set an alias to that script.

For example, with _that_ script, I can simply enter `study math` (I've set "study" as the alias) in my terminal and it will start a session with the tag `study` (in my case) with `math` as the session name.

## Roadmap

- [x] Add sound on timer/stopwatch start
Expand Down
9 changes: 9 additions & 0 deletions docs/study.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/zsh
# Use !/bin/bash if on Bash shell.

if [ -z "$1" ]; then
echo "Nah bro, gimme an argument" # if there is no argument provided
exit 1
fi

flomo s -t study -n $1 # execute command with given argument

0 comments on commit fce2088

Please sign in to comment.