Skip to content

Commit d9f4978

Browse files
committed
Automate alias target-file specification
1 parent fad610d commit d9f4978

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,13 @@ Call `lazygit` in your terminal, while inside a git repository.
454454
$ lazygit
455455
```
456456

457-
If you want, you can
458-
also add an alias for this with `echo "alias lg='lazygit'" >> ~/.zshrc` (or
459-
whichever rc file you're using).
457+
### Add ZSH/Bash Alias
458+
459+
Create a shortcut for lazygit by adding an alias to the shell configuration file.
460+
461+
```sh
462+
echo "alias lg='lazygit'" >> "$HOME/.$(basename $SHELL)rc"
463+
```
460464

461465
### Keybindings
462466

0 commit comments

Comments
 (0)