> For the complete documentation index, see [llms.txt](https://docs.monarchlinux.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.monarchlinux.com/basics/shell-aliases/navigation-and-git.md).

# Navigation and Git

See [Shell aliases and functions](https://docs.monarchlinux.com/basics/shell-aliases.md) for command discovery and personal overrides.

## Move around

* `..`, `...`, `....`: move up one, two or three directories.
* `cdtmp`: create a temporary directory and enter it. It is not automatically removed when you leave it.
* `open <path-or-url>`: open a file or URL with its default application.

When zoxide is available, Monarch's `cd` helper accepts existing directories and can resolve previously visited locations. Use `builtin cd` to bypass it.

When eza is available, `ls` uses the enhanced listing and `lsa` includes hidden entries. `lt` displays a tree two levels deep; `lta` also includes hidden entries.

## Find and edit files

`ff` opens a fuzzy file picker with a preview. `eff` opens its selection with your configured `$EDITOR`. The preview can display images when using Kitty.

## Inspect Git work

* `gst`: full `git status`.
* `gss`: compact status.
* `gsb`: compact status including the branch.
* `ga <paths…>`: stage the specified files.
* `gaa`: stage all changes, including deletions; check the result before committing.

```bash
gsb
ga src/example.py
git diff --cached
```

## Use the clipboard

`cpy` copies stdin to the Wayland clipboard. `paste` reads it without adding a newline. These need a working Wayland session.

```bash
printf %s 'text to copy' | cpy
paste
```

## Deletion is different

Monarch aliases `rm` to `trash-put` and `cp` to `cp -i`. Do not assume those definitions apply in scripts or noninteractive shells. Inspect them with `alias rm` and `alias cp`; use explicit underlying commands when scripting.
