mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Merge 742c3c64d5
into ef1da6f704
This commit is contained in:
commit
12bdb7fb0d
1 changed files with 18 additions and 12 deletions
30
README.md
30
README.md
|
@ -237,13 +237,13 @@ Normally the lazygit formula can be found in the Homebrew core but we suggest yo
|
||||||
|
|
||||||
Tap:
|
Tap:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
brew install jesseduffield/lazygit/lazygit
|
brew install jesseduffield/lazygit/lazygit
|
||||||
```
|
```
|
||||||
|
|
||||||
Core:
|
Core:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
brew install lazygit
|
brew install lazygit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -440,29 +440,35 @@ You can install `lazygit` using the `winget` command in the Windows Terminal wit
|
||||||
winget install -e --id=JesseDuffield.lazygit
|
winget install -e --id=JesseDuffield.lazygit
|
||||||
```
|
```
|
||||||
|
|
||||||
### Manual
|
### Install Lazygit From Source
|
||||||
|
|
||||||
You'll need to [install Go](https://golang.org/doc/install)
|
First, [install Go](https://golang.org/doc/install)
|
||||||
|
|
||||||
```
|
```sh
|
||||||
git clone https://github.com/jesseduffield/lazygit.git
|
git clone https://github.com/jesseduffield/lazygit.git
|
||||||
cd lazygit
|
cd lazygit
|
||||||
go install
|
go install
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also use `go run main.go` to compile and run in one go (pun definitely intended)
|
#### Compile Emphemeral Binary
|
||||||
|
|
||||||
|
Alternatively use `go run main.go` to compile and run in one go (pun definitely intended)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Call `lazygit` in your terminal inside a git repository.
|
Call `lazygit` in your terminal, while inside a git repository.
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ lazygit
|
$ lazygit
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want, you can
|
### Add ZSH/Bash Alias
|
||||||
also add an alias for this with `echo "alias lg='lazygit'" >> ~/.zshrc` (or
|
|
||||||
whichever rc file you're using).
|
Create a shortcut for lazygit by adding an alias to the shell configuration file.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
echo "alias lg='lazygit'" >> "$HOME/.$(basename $SHELL)rc"
|
||||||
|
```
|
||||||
|
|
||||||
### Keybindings
|
### Keybindings
|
||||||
|
|
||||||
|
@ -472,7 +478,7 @@ You can check out the list of keybindings [here](/docs/keybindings).
|
||||||
|
|
||||||
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):
|
||||||
|
|
||||||
```
|
```sh
|
||||||
lg()
|
lg()
|
||||||
{
|
{
|
||||||
export LAZYGIT_NEW_DIR_FILE=~/.lazygit/newdir
|
export LAZYGIT_NEW_DIR_FILE=~/.lazygit/newdir
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue