2016-07-24 12:25:01 +08:00
< img src = "https://cdn.rawgit.com/oh-my-fish/oh-my-fish/e4f1c2e0219a17e2c748b824004c8d0b38055c16/docs/logo.svg" align = "left" width = "128px" height = "128px" / >
< img align = "left" width = "0" height = "128px" / >
2015-08-26 23:20:13 +08:00
2016-07-24 12:25:01 +08:00
# FAQ
2015-09-11 20:23:05 +08:00
2016-07-24 12:25:01 +08:00
> Oh My Fish Documentation • Also in
> <a href="../ru-RU/FAQ.md">🇷🇺</a>
> <a href="../zh-CN/FAQ.md">🇨🇳</a>
2017-01-05 03:57:32 +08:00
> <a href="../uk-UA/FAQ.md">🇺🇦</a>
2015-09-11 20:23:05 +08:00
2016-07-24 12:25:01 +08:00
< br >
2015-08-26 23:20:13 +08:00
Thanks for taking the time to read this FAQ. Feel free to create a new issue if your question is not answered here.
## What is Oh My Fish and why do I want it?
2016-01-20 03:44:54 +08:00
Oh My Fish is a _framework_ for the [Fishshell ](http://fishshell.com/ ). It helps you manage your configuration, themes and packages.
2015-08-26 23:20:13 +08:00
## What do I need to know to use Oh My Fish?
2015-08-27 01:03:22 +08:00
_Nothing_. You can install Oh My Fish and keep using Fish as usual. When you are ready to learn more just type `omf help` .
2015-08-26 23:20:13 +08:00
## What are Oh My Fish packages?
Oh My Fish packages are themes or plugins written in fish that extend the shell core functionality, run code during initialization, add auto completion for known utilities, etc.
## What kind of Oh My Fish packages are there?
There are roughly 3 kinds of packages:
1. Configuration utilities. For example [`pkg-pyenv` ](https://github.com/oh-my-fish/pkg-pyenv ) checks whether `pyenv` exists in your system and runs `(pyenv init - | psub)` for you during startup.
2. Themes. Check our [theme gallery ](https://github.com/oh-my-fish ).
3. Traditional shell utilities. For example [`pkg-copy` ](https://github.com/oh-my-fish/pkg-copy ), a clipboard utility compatible across Linux and OSX.
## What does Oh My Fish do exactly?
2015-09-28 06:36:30 +08:00
+ Run `$OMF_CONFIG/before.init.fish` if available.
2015-08-26 23:20:13 +08:00
+ Autoload installed packages and themes under `$OMF_PATH/` .
2015-08-28 01:56:01 +08:00
+ Autoload your config path. `~/.config/omf` by default, but configurable via `$OMF_CONFIG` .
2015-08-26 23:20:13 +08:00
2015-08-28 01:56:01 +08:00
+ Autoload any `functions` directory under `$OMF_PATH` and `$OMF_CONFIG`
2015-08-26 23:20:13 +08:00
2015-08-28 01:56:01 +08:00
+ Run `$OMF_CONFIG/init.fish` if available.
2015-08-26 23:20:13 +08:00
## How can I upgrade from an existing Oh My Fish installation?
> :warning: Remember to backup your dotfiles and other sensitive data first.
```
2015-09-04 06:19:28 +08:00
curl -L github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | sh
2015-08-26 23:20:13 +08:00
```
2015-08-27 00:48:40 +08:00
You can now safely remove `$fish_path` .
```fish
rm -rf "$fish_path"
```
2015-08-26 23:20:13 +08:00
## How do I use fish as my default shell?
Add Fish to `/etc/shells` :
```sh
echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
```
Make Fish your default shell:
```sh
chsh -s /usr/local/bin/fish
```
To switch your default shell back:
> Substitute `/bin/bash` with `/bin/tcsh` or `/bin/zsh` as appropriate.
```sh
chsh -s /bin/bash
```