Skip to content

Commit

Permalink
install: astro alias for bash and zsh
Browse files Browse the repository at this point in the history
Hint suggesting the use of a common aliases file when switching between aliases

Signed-off-by: Practicalli Johnny <[email protected]>
  • Loading branch information
practicalli-johnny authored Dec 6, 2023
1 parent 779f99b commit 9ccac9f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/configuration/astronvim/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,27 @@ AstroNvim provides a [:fontawesome-brands-github: template repository](https://g

Create a shell alias that sets `NVIM_APPNAME` to the location of the AstroNvim community config

Add alias to `.bashrc` for Bash shell or `.zshenv` for Zsh
Add alias to `.bashrc` for Bash shell or `.zshrc` for Zsh

```config
alias astro="NVIM_APPNAME=astronvim nvim"
```

!!! HINT "dot aliases file for both bash and zsh"
Create a `.config/aliases` file containing all shell aliases when often switching between different shells, avoiding the need to define aliases twice

Source the `.config/aliases` file from within `.bashrc` and `.zshrc`

```shell title=".bashrc"
if [ -f ~/.config/aliases ]; then
. ~/.config/aliases
fi
```

```shell title=".zshrc"
source $HOME/.config/aliases
```

[:fontawesome-solid-book-open: Configure shell alias](/neovim/configuration/){target=_blank .md-button}


Expand Down

0 comments on commit 9ccac9f

Please sign in to comment.