summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/docs/Troubleshooting.md
diff options
context:
space:
mode:
authorRoger Gonzalez <rogergonzalez21@gmail.com>2019-12-29 14:58:33 -0300
committerRoger Gonzalez <rogergonzalez21@gmail.com>2019-12-29 14:58:33 -0300
commitefb336a23b65a9a2d56889396b13c1757bdaf354 (patch)
tree234e40115f79a84c8a755df6fb932cc6797e36e1 /.config/fisher/github.com/matchai/spacefish/docs/Troubleshooting.md
Initial commit
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/docs/Troubleshooting.md')
-rw-r--r--.config/fisher/github.com/matchai/spacefish/docs/Troubleshooting.md82
1 files changed, 82 insertions, 0 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/docs/Troubleshooting.md b/.config/fisher/github.com/matchai/spacefish/docs/Troubleshooting.md
new file mode 100644
index 00000000..c38bfd02
--- /dev/null
+++ b/.config/fisher/github.com/matchai/spacefish/docs/Troubleshooting.md
@@ -0,0 +1,82 @@
+# Troubleshooting
+
+This page aimed to help you fix common problems encountered while using spacefish.
+
+## My prompt is filling with errors
+
+Try all of the following troubleshooting steps:
+
+* Verify that your fish installation is at the [latest version](https://github.com/fish-shell/fish-shell/releases)
+
+ ```sh
+ fish --version
+ ```
+
+* Update spacefish with `fisher` or `omf`
+
+ ```sh
+ fisher add matchai/spacefish
+ # or
+ omf update spacefish
+ ```
+
+* If errors persist, please [open an issue](https://github.com/matchai/spacefish/issues/new)
+
+## What's the weird symbol beside the `git` branch?
+
+You need to have a powerline patched font in order to properly display `git` branch symbol.
+
+* Install any powerline compatible font like [Fira Code](https://github.com/tonsky/FiraCode) or [others](https://github.com/powerline/fonts).
+* Configure your terminal emulator to [use that font](https://powerline.readthedocs.io/en/master/troubleshooting/osx.html).
+
+## What's the weird character in front of a section?
+
+This is not an issue with spacefish. Spacefish uses Unicode symbols to represent `SPACESFISH_*_SYMBOL` in sections. To solve this problem:
+
+* Verify your terminal emulator supports Unicode characters with this command:
+
+ ```sh
+ curl https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt
+ # or
+ wget -O - https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt
+ ```
+* Configure your terminal emulator to use UTF-8 character encoding.
+
+
+In the event that Unicode characters aren't supported, you can replace them with characters that are compatible with your terminal with `SPACEFISH_*_SYMBOL` options. Check out the [Options](./docs/Options.md) page for more information.
+
+## Why is my prompt slow?
+
+Spacefish may run more slowlyin big repositories since the status checks add up to be expensive operations.
+
+To speed up your prompt, try to reduce the number of unused spacefish sections that are enabled. Spacefish only loads the sections mentioned in `SPACEFISH_PROMPT_ORDER`. If you think some sections might not be be useful to you, you can disable them by not including their names in the prompt order.
+
+## Why do my section icons overlap each other?
+
+![overlapping icons](../images/icon-overlap.png)
+
+This issue is due to how your terminal emulator renders Unicode 9 characters. To fix this issue:
+
+* Make sure terminal uses _Unicode Version 9 Widths_.
+* Let your terminal render ambiguous-width characters as double-width.
+
+In _iTerm_ follow these instructions:
+
+* Go _iTerm → Preferences… (⌘,) → Profiles → Text_
+* Check _Unicode Version 9 Widths_.
+* Check _Threat ambiguous-width characters as double-width_.
+* Reload your terminal's tab.
+
+## Why doesn't my prompt look like it does in the preview?
+
+![preview](../images/preview.gif)
+
+Preview shows a `spacefish` setup with:
+
+* [Hyper](https://hyper.is) as the terminal emulator.
+* [One Dark](https://www.npmjs.com/package/hyperterm-atom-dark) color theme from [Atom](https://atom.io/) editor.
+* [Fira Code](https://github.com/tonsky/FiraCode) with with ligatures as primary font (16px size).
+
+## My problem wasn't solved
+
+If the above suggestions don't address your problem, feel free to [open an issue](https://github.com/matchai/spacefish/issues/new), describe your problem and we will gladly help you.