FAQ
Frequently Asked Questions
How do I set or clear an environment variable?
Use the set
command:
set -x key value set -e key
How do I run a command every login? What's fish's equivalent to .bashrc?
Edit the file ~/.config/fish/config.fish
, creating it if it does not exist (Note the leading period).
How do I set my prompt?
The prompt is the output of the fish_prompt
function. Put it in ~/.config/fish/functions/fish_prompt.fish
. For example, a simple prompt is:
function fish_prompt set_color $fish_color_cwd echo -n (prompt_pwd) set_color normal echo -n ' > ' end
You can also use the Web configuration tool, 登录查看完整内容