Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Docs: Add 'Built-in aliases' section and remove 'Update git-bash-conf…
Browse files Browse the repository at this point in the history
…ig' section
  • Loading branch information
Hdoc1509 committed Nov 16, 2022
1 parent 0f3a865 commit a686d07
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ source ~/.bashrc
mklink %userprofile%\.minttyrc %userprofile%\.config\git-bash\.minttyrc
```

## Built-in aliases

| Alias | Description |
| ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| gbCfg | Change directory to `~/.config/git-bash` and open editor setted in `SF_EDITOR` variable |
| gbCfgU | Update your local copies of `git-bash-config` and `shell-fns`. You will need to restart `git-bash` |
| new | Open a new window of `git-bash` in current directory. This alias is affected by [`SF_START_DEV_FOLDER`](https://github.com/Hdoc1509/shell-fns/tree/master/plugins/dev#settings) variable of `dev` plugin from `shell-fns`. |
| srcBash | Source your `~/.bashrc` file |

## Customization

All configurations must be placed in `~/.config/git-bash/main.sh` file.
Expand All @@ -63,23 +72,6 @@ set_custom_theme blue-owl-mod

- [Configurations for shell-fns](https://github.com/Hdoc1509/shell-fns#usage) must be at the end.

## Update git-bash-config

- Run the following commands for update your local copies of `git-bash-config` and `shell-fns`:

```sh
git -C ~/.config/git-bash pull
git -C ~/.config/shell-fns pull
```

- Or run the following built-in alias:

```sh
gbCfgU
```

All updates will take effect after restarting `git-bash`.

## My other software configurations

- [nvim-config](https://github.com/Hdoc1509/nvim-config)
Expand Down

0 comments on commit a686d07

Please sign in to comment.