mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
docs(docs): expand terminal and tmux documentation with launch commands, prompts, persistence, and keybinding updates
This commit is contained in:
1 parent
ce9886c2e7
commit
9e227b416d
10 files changed
+106
-76
No files matched your search
@@ -17,10 +17,12 @@ The file is not a template and applies on every role. `starship` is in `.chezmoi
|
||||
| --- | --- |
|
||||
| fish | `conf.d/40-tools.fish` runs `starship init fish`, then `config.fish` runs it again and calls `enable_transience` |
|
||||
| bash | `eval "$(starship init bash)"` in `~/.bashrc` |
|
||||
| zsh | `eval "$(starship init zsh)"` in `~/.zshrc` |
|
||||
| zsh | `eval "$(starship init zsh)"` in `~/.zshrc`, plus a transient-prompt hook |
|
||||
|
||||
With transience in fish, past prompts in the scrollback collapse to the output of `starship_transient_prompt_func` (`starship module character`, the `❯` alone) and `starship_transient_rprompt_func` (`starship module time`). See [fish](/shell/fish#configfish).
|
||||
|
||||
zsh has no built-in transience, so `~/.zshrc` collapses past prompts itself, rendering the `transient` (`$character`) and `transient_right` (`$time`) entries under `[profiles]` with `starship prompt --profile`. It uses profiles rather than `starship module` because only `starship prompt` wraps color escapes in zsh's `%{…%}`; without them zsh miscounts the right prompt's width. zsh also gets starship's default `∙` continuation prompt (`PROMPT2`). See [bash and zsh](/shell/bash-zsh#zshrc).
|
||||
|
||||
## Layout
|
||||
|
||||
```toml ~/.config/starship.toml
|
||||
|
||||
Reference in new issue
Block a user