1
1
mirror of https://github.com/casey/just.git synced 2024-11-26 23:27:26 +03:00

Suggest using ~/.global.justfile instead of ~/.justfile (#937)

Since `just` now looks for files named `.justfile` in addition to
`justfile`, suggest using `~/.global.justfile` as the name for a global
justfile.
This commit is contained in:
Casey Rodarmor 2021-08-03 22:02:58 -07:00 committed by GitHub
parent bdec18546b
commit f93f7086e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1624,16 +1624,16 @@ Before `just` was a fancy Rust program it was a tiny shell script that called `m
=== Non-Project Specific Justfile
If you want some commands to be available everywhere, put them in `~/.justfile` and add the following to your shell's initialization file:
If you want some commands to be available everywhere, put them in `~/.global.justfile` and add the following to your shell's initialization file:
```sh
alias .j='just --justfile ~/.justfile --working-directory ~'
alias .j='just --justfile ~/.global.justfile --working-directory ~'
```
Or, if you'd rather they run in the current directory:
```sh
alias .j='just --justfile ~/.justfile --working-directory .'
alias .j='just --justfile ~/.global.justfile --working-directory .'
```
I'm pretty sure that nobody actually uses this feature, but it's there.