> For the complete documentation index, see [llms.txt](https://woodrowpearson.gitbook.io/code-gists/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://woodrowpearson.gitbook.io/code-gists/zsh-1.md).

# Zsh

```bash
# Read function definition
whence -f ..

# See where the it was defined
whence -v
```

```bash
# Bind comand to alt key
# alt+i will run 'a' command.
# \e means opt key
bindkey -s '\ei' '^Ua^M'
```

```bash
# See what is binded to a key
# See what is binding to ⌃ + E
bindkey '^E'
```

```bash
# Run zsh without sourcing zshrc
zsh -f
```

```bash
# Set alias to external command
alias fin='command fd'
```

```bash
# List all bindings
bindkey
```
