Skip to content

Commit

Permalink
Updates to Installation Instructions (#549)
Browse files Browse the repository at this point in the history
* add font installation

* add terminal and font installation tips

* update nix installation instructions

* formatting

* formatting

* Update website/docs/quick-start/install-atmos.mdx

Co-authored-by: Andriy Knysh <[email protected]>

---------

Co-authored-by: Andriy Knysh <[email protected]>
  • Loading branch information
osterman and aknysh authored Oct 21, 2024
1 parent 4fa97ea commit 4e04f0f
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
66 changes: 66 additions & 0 deletions website/docs/quick-start/install-atmos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,20 @@ Atmos has native packages for macOS and every major Linux distribution. We also
```shell
nix-env -iA nixpkgs.atmos
```

To get the latest version, you may need to update the Nix config to add "unstable" packages.

For example, in `~/.config/nixpkgs/config.nix` add the following line to the file:

```console
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
```

Then run the following to install:

```shell
nix-shell -p atmos
```
</TabItem>

<TabItem value="scoop" label="Windows">
Expand Down Expand Up @@ -264,6 +278,58 @@ The latest version of Atmos (<LatestRelease />) might not be available with thir
- Add the execution bit to the binary (e.g. on Linux and Mac, run `chmod u+x atmos`)
- Place the binary somewhere on your `PATH` (e.g. on Linux and Mac: `mv atmos /usr/local/bin/`)

## Set Up Your Terminal

Atmos is a modern CLI with a Text-based UI (TUI), as such, for the best experience we recommend ensuring you have
a decent terminal and modern fonts installed and configured in your terminal.

### TERM Environment Variable

Atmos uses ANSI color codes. These should work in every modern terminal, including the default terminal shipped with
macOS. You *may* have to set the `TERM` environment variable to `xterm-256color` for it to work.
This can be persisted in your `~/.bashrc` or `~/.zshrc` file (or the respective RC file of whatever shell is in use).

```shell
export TERM=xterm-256color
```

If you're having any troule, try [iTerm2](https://iterm2.com/) or any other modern day terminal that supports
ANSI characters and fonts.

:::tip Install NerdFonts
To display all icons used by `atmos`, we recommend the use of a Nerd Font, like *Fira Code*.
:::

### NerdFonts

Nerd Fonts are popular fonts that are patched to include icons.

The exact process will depend on your terminal and operating system, but the general idea is to install a font that
includes the necessary glyphs and then configure your terminal.

Go to https://www.nerdfonts.com/ for more information.

::tip
We recommend the "Fira Code" NerdFont version, which is what all our screenshots are based on.
:::

<Tabs>
<TabItem value="homebrew-cask-fonts" label="Homebrew">
#### Homebrew

If you're using Homebrew, you can tap the `homebrew-cask-fonts` repository to install Nerd Fonts.

Paste the following into a macOS Terminal window.

```shell
brew tap homebrew/cask-fonts # You only need to do this once!
brew search nerd-font # Search for font packages

# Install the NerdFont version of Fira Code
brew install --cask font-fira-code-nerd-font
```
</TabItem>
</Tabs>

## Next Steps

Expand Down
1 change: 1 addition & 0 deletions website/static/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ install_via_binary_download() {
# Function to install via Homebrew
install_via_brew() {
export HOMEBREW_NO_INSTALL_CLEANUP=1
export HOMEBREW_NO_ENV_HINTS=1
echo "Using Homebrew package manager..."
brew install atmos
}
Expand Down

0 comments on commit 4e04f0f

Please sign in to comment.