mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-04 23:37:41 +02:00
docs: configuration and pull request services' settings
This commit is contained in:
parent
0eb3090ad6
commit
6f4c595dde
72
README.md
72
README.md
@ -24,9 +24,11 @@ Github Sponsors is matching all donations dollar-for-dollar for 12 months so if
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Homebrew
|
### Homebrew
|
||||||
|
|
||||||
Normally the lazygit formula can be found in the Homebrew core but we suggest you tap our formula to get the frequently updated one. It works with Linux, too.
|
Normally the lazygit formula can be found in the Homebrew core but we suggest you tap our formula to get the frequently updated one. It works with Linux, too.
|
||||||
|
|
||||||
Tap:
|
Tap:
|
||||||
|
|
||||||
```
|
```
|
||||||
brew install jesseduffield/lazygit/lazygit
|
brew install jesseduffield/lazygit/lazygit
|
||||||
```
|
```
|
||||||
@ -38,8 +40,10 @@ brew install lazygit
|
|||||||
```
|
```
|
||||||
|
|
||||||
### MacPorts
|
### MacPorts
|
||||||
|
|
||||||
Latest version built from github releases.
|
Latest version built from github releases.
|
||||||
Tap:
|
Tap:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo port install lazygit
|
sudo port install lazygit
|
||||||
```
|
```
|
||||||
@ -82,11 +86,11 @@ Packages for Arch Linux are available via AUR (Arch User Repository).
|
|||||||
There are two packages. The stable one which is built with the latest release
|
There are two packages. The stable one which is built with the latest release
|
||||||
and the git version which builds from the most recent commit.
|
and the git version which builds from the most recent commit.
|
||||||
|
|
||||||
- Stable: https://aur.archlinux.org/packages/lazygit/
|
- Stable: <https://aur.archlinux.org/packages/lazygit/>
|
||||||
- Development: https://aur.archlinux.org/packages/lazygit-git/
|
- Development: <https://aur.archlinux.org/packages/lazygit-git/>
|
||||||
|
|
||||||
Instruction of how to install AUR content can be found here:
|
Instruction of how to install AUR content can be found here:
|
||||||
https://wiki.archlinux.org/index.php/Arch_User_Repository
|
<https://wiki.archlinux.org/index.php/Arch_User_Repository>
|
||||||
|
|
||||||
### Fedora and CentOS 7
|
### Fedora and CentOS 7
|
||||||
|
|
||||||
@ -99,7 +103,7 @@ sudo dnf install lazygit
|
|||||||
|
|
||||||
### Conda
|
### Conda
|
||||||
|
|
||||||
Released versions are available for different platforms, see https://anaconda.org/conda-forge/lazygit
|
Released versions are available for different platforms, see <https://anaconda.org/conda-forge/lazygit>
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
conda install -c conda-forge lazygit
|
conda install -c conda-forge lazygit
|
||||||
@ -135,6 +139,7 @@ whichever rc file you're using).
|
|||||||
## Changing Directory On Exit
|
## Changing Directory On Exit
|
||||||
|
|
||||||
If you change repos in lazygit and want your shell to change directory into that repo on exiting lazygit, add this to your `~/.zshrc` (or other rc file):
|
If you change repos in lazygit and want your shell to change directory into that repo on exiting lazygit, add this to your `~/.zshrc` (or other rc file):
|
||||||
|
|
||||||
```
|
```
|
||||||
lg()
|
lg()
|
||||||
{
|
{
|
||||||
@ -148,8 +153,67 @@ lg()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Then `source ~/.zshrc` and from now on when you call `lg` and exit you'll switch directories to whatever you were in inside lazyigt. To override this behaviour you can exit using `shift+Q` rather than just `q`.
|
Then `source ~/.zshrc` and from now on when you call `lg` and exit you'll switch directories to whatever you were in inside lazyigt. To override this behaviour you can exit using `shift+Q` rather than just `q`.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
All Lazygit configurations are stored on `<userConfigDir>/jesseduffield/lazygit/config.yml`, where
|
||||||
|
`userConfigDir` is your OS-dependent user configurations folder, namely:
|
||||||
|
|
||||||
|
- Windows: `%APPDATA%` (`C:\Users\<User>\AppData\Roaming`)
|
||||||
|
- Linux/BSDs: `${XDG_CONFIG_HOME}` (`${HOME}/.config`)
|
||||||
|
- MacOSX: `${HOME}/Library/Application Support`
|
||||||
|
|
||||||
|
This file is auto-generated on first run.
|
||||||
|
|
||||||
|
You can also get the default values with `lazygit -c`, which returns something like:
|
||||||
|
|
||||||
|
```
|
||||||
|
gui:
|
||||||
|
## stuff relating to the UI
|
||||||
|
scrollHeight: 2
|
||||||
|
scrollPastBottom: true
|
||||||
|
mouseEvents: false # will default to true when the feature is complete
|
||||||
|
theme:
|
||||||
|
activeBorderColor:
|
||||||
|
- white
|
||||||
|
- bold
|
||||||
|
inactiveBorderColor:
|
||||||
|
- white
|
||||||
|
optionsTextColor:
|
||||||
|
- blue
|
||||||
|
commitLength:
|
||||||
|
show: true
|
||||||
|
git:
|
||||||
|
merging:
|
||||||
|
manualCommit: false
|
||||||
|
skipHookPrefix: 'WIP'
|
||||||
|
autoFetch: true
|
||||||
|
update:
|
||||||
|
method: prompt # can be: prompt | background | never
|
||||||
|
days: 14 # how often a update is checked for
|
||||||
|
reporting: 'undetermined' # one of: 'on' | 'off' | 'undetermined'
|
||||||
|
confirmOnQuit: false
|
||||||
|
```
|
||||||
|
|
||||||
|
### Custom pull request URLs
|
||||||
|
|
||||||
|
Some git provider setups (e.g. on-premises GitLab) can have distinct URLs for git-related calls and
|
||||||
|
the web interface/API itself. To work with those, Lazygit needs to know where it needs to create
|
||||||
|
the pull request. You can do so on your `config.yml` file using the following syntax:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
"<gitDomain>": "<provider>:<webDomain>"
|
||||||
|
```
|
||||||
|
|
||||||
|
Where:
|
||||||
|
|
||||||
|
- `gitDomain` stands for the domain used by git itself (i.e. the one present on clone URLs), e.g. `git.work.com`
|
||||||
|
- `provider` is one of `github`, `bitbucket` or `gitlab`
|
||||||
|
- `webDomain` is the URL where your git service exposes a web interface and APIs, e.g. `gitservice.work.com`
|
||||||
|
|
||||||
## Cool features
|
## Cool features
|
||||||
|
|
||||||
- Adding files easily
|
- Adding files easily
|
||||||
|
Loading…
x
Reference in New Issue
Block a user