Skip to content

Commit b51cea0

Browse files
committed
chore: format whole tree
1 parent 1341e23 commit b51cea0

File tree

26 files changed

+23907
-19618
lines changed

26 files changed

+23907
-19618
lines changed

.githooks/README.md

+47-8
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,65 @@
11
# Githooks
22

3-
This project uses [Githooks](https://github.com/gabyx/githooks), that allows running [Git hooks](https://git-scm.com/docs/cli/githooks) checked into this repository. This folder contains hooks that should be executed by everyone who interacts with this source repository. For a documentation on how this works and how to get it [installed](https://github.com/gabyx/githooks#installation), check the project [README](https://github.com/gabyx/githooks/blob/main/README.md) in the [gabyx/githooks](https://github.com/gabyx/githooks) GitHub repository.
3+
This project uses [Githooks](https://github.com/gabyx/githooks), that allows
4+
running [Git hooks](https://git-scm.com/docs/cli/githooks) checked into this
5+
repository. This folder contains hooks that should be executed by everyone who
6+
interacts with this source repository. For a documentation on how this works and
7+
how to get it [installed](https://github.com/gabyx/githooks#installation), check
8+
the project [README](https://github.com/gabyx/githooks/blob/main/README.md) in
9+
the [gabyx/githooks](https://github.com/gabyx/githooks) GitHub repository.
410

511
## Brief summary
612

7-
The [directories or files](https://github.com/gabyx/githooks#layout-and-options) in this folder tell Git to execute certain scripts on various [trigger events](https://github.com/gabyx/githooks#supported-hooks), before or after a commit, on every checkout, before a push for example - assuming [Githooks](https://github.com/gabyx/githooks) is already [installed](https://github.com/gabyx/githooks#installation) and [run-wrappers are installed](https://github.com/gabyx/githooks#installing-or-removing-run-wrappers) for the repository. The directory or file names refer to these events, like `pre-commit`, `post-commit`, `post-checkout`, `pre-push`, etc. If they are folders, each file inside them is treated as a hook script and will be executed when Git runs the hooks as part of the command issued by the user. [Githooks](https://github.com/gabyx/githooks) comes with a [command line tool](https://github.com/gabyx/githooks/blob/main/docs/cli/git_hooks.md) tool, that allows you to manage its configuration and state with a `git hooks <cmd>` command. See the [documentation](https://github.com/gabyx/githooks/blob/main/docs/cli/git_hooks.md) or run `git hooks --help` for more information and available options.
13+
The [directories or files](https://github.com/gabyx/githooks#layout-and-options)
14+
in this folder tell Git to execute certain scripts on various
15+
[trigger events](https://github.com/gabyx/githooks#supported-hooks), before or
16+
after a commit, on every checkout, before a push for example - assuming
17+
[Githooks](https://github.com/gabyx/githooks) is already
18+
[installed](https://github.com/gabyx/githooks#installation) and
19+
[run-wrappers are installed](https://github.com/gabyx/githooks#installing-or-removing-run-wrappers)
20+
for the repository. The directory or file names refer to these events, like
21+
`pre-commit`, `post-commit`, `post-checkout`, `pre-push`, etc. If they are
22+
folders, each file inside them is treated as a hook script and will be executed
23+
when Git runs the hooks as part of the command issued by the user.
24+
[Githooks](https://github.com/gabyx/githooks) comes with a
25+
[command line tool](https://github.com/gabyx/githooks/blob/main/docs/cli/git_hooks.md)
26+
tool, that allows you to manage its configuration and state with a
27+
`git hooks <cmd>` command. See the
28+
[documentation](https://github.com/gabyx/githooks/blob/main/docs/cli/git_hooks.md)
29+
or run `git hooks --help` for more information and available options.
830

931
### Is this safe?
1032

11-
[Githooks](https://github.com/gabyx/githooks) uses an [opt-in model](https://github.com/gabyx/githooks#trusting-hooks), where it will ask for confirmation whether new or changed hooks should be run or not (or disabled).
33+
[Githooks](https://github.com/gabyx/githooks) uses an
34+
[opt-in model](https://github.com/gabyx/githooks#trusting-hooks), where it will
35+
ask for confirmation whether new or changed hooks should be run or not (or
36+
disabled).
1237

1338
### How do I add a new hook script?
1439

15-
Either create a file with the [Git hook](https://github.com/gabyx/githooks#supported-hooks) name, or a directory (recommended) inside the `.githooks` folder, and place files with the individual steps that should be executed for that event inside. If the file is executable, it will be invoked directly, otherwise it is assumed to be a Shell script - unless this file matches one of the [ignore patterns](https://github.com/gabyx/githooks#ignoring-hooks-and-files) in the `.githooks` area.
40+
Either create a file with the
41+
[Git hook](https://github.com/gabyx/githooks#supported-hooks) name, or a
42+
directory (recommended) inside the `.githooks` folder, and place files with the
43+
individual steps that should be executed for that event inside. If the file is
44+
executable, it will be invoked directly, otherwise it is assumed to be a Shell
45+
script - unless this file matches one of the
46+
[ignore patterns](https://github.com/gabyx/githooks#ignoring-hooks-and-files) in
47+
the `.githooks` area.
1648

1749
### How can I see what hooks are active?
1850

19-
You can look at the `.githooks` folder to see the local hooks in the repository, though if you have shared hook repositories defined, those will live under the `~/.githooks/shared` folder.
20-
The [command line tool](https://github.com/gabyx/githooks/blob/main/docs/cli/git_hooks.md) can list out all of them for you with `git hooks list`, and you can use it to trust or ingoring hooks.
51+
You can look at the `.githooks` folder to see the local hooks in the repository,
52+
though if you have shared hook repositories defined, those will live under the
53+
`~/.githooks/shared` folder. The
54+
[command line tool](https://github.com/gabyx/githooks/blob/main/docs/cli/git_hooks.md)
55+
can list out all of them for you with `git hooks list`, and you can use it to
56+
trust or ingoring hooks.
2157

2258
## More information
2359

24-
You can find more information about how this all works in the [README](https://github.com/gabyx/githooks/blob/main/README.md) of the [Githooks](https://github.com/gabyx/githooks) project repository.
60+
You can find more information about how this all works in the
61+
[README](https://github.com/gabyx/githooks/blob/main/README.md) of the
62+
[Githooks](https://github.com/gabyx/githooks) project repository.
2563

26-
If you find it useful, please show your support by starring the project in GitHub!
64+
If you find it useful, please show your support by starring the project in
65+
GitHub!

config/dot_config/git/tools/diff-tools/executable_launch.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ local=$(wrapPath "$1")
3535
remote=$(wrapPath "$2")
3636

3737
if [ "$tool" = "bcompare" ]; then
38-
"$toolPath" "$local" "$remote" /lefttitle="Original[$local]" /righttitle="Mine[$remote]"
38+
"$toolPath" "$local" "$remote" /lefttitle="Original[$local]" /righttitle="Mine[$remote]"
3939
elif [ "$tool" = "bcompare-unix" ]; then
40-
"$toolPath" "$local" "$remote" -lefttitle="Original[$local]" -righttitle="Mine[$remote]"
40+
"$toolPath" "$local" "$remote" -lefttitle="Original[$local]" -righttitle="Mine[$remote]"
4141
elif [ "$tool" = "edp" ]; then
4242
"$toolPath" "-dn1:Diff::Original[$local]" "-dn2:Mine[$remote]" -nh -- "$local" "$remote"
4343
elif [ "$tool" = "meld" ]; then
4444
"$toolPath" "$local" "$remote" --label "Diff::Original|Mine"
4545
elif [ "$tool" = "nvim" ]; then
46-
"$toolPath" -d "$local" "$remote"
46+
"$toolPath" -d "$local" "$remote"
4747
elif [ "$tool" = "vscode" ]; then
4848
"$toolPath" --wait --diff "$local" "$remote"
4949
elif [ "$tool" = "vsdiffmerge" ]; then

config/dot_config/hypr/start.sh

-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@ fi
1111

1212
# Launch the bar.
1313
waybar &
14-
15-
16-

0 commit comments

Comments
 (0)