Difference between revisions of "How to run automatically fish on your terminal"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
  
 
3. <code>vi ~/.bashrc</code>
 
3. <code>vi ~/.bashrc</code>
 +
 
4. Add your command to the end of the file:<code>fish</code>
 
4. Add your command to the end of the file:<code>fish</code>
 +
 
5.  
 
5.  
 
* <code>source ~/.bashrc</code>  # For Bash
 
* <code>source ~/.bashrc</code>  # For Bash
Line 13: Line 15:
 
* <code>source ~/.config/fish/config.fish</code>  # For Fish
 
* <code>source ~/.config/fish/config.fish</code>  # For Fish
  
 +
== Related ==
 +
* [[Make fish your default shell in macOS]]
  
 
== See also ==
 
== See also ==

Latest revision as of 11:18, 22 August 2024

1. echo $SHELL

2.

  • Bash: ~/.bashrc or ~/.bash_profile
  • Zsh: ~/.zshrc
  • Fish: ~/.config/fish/config.fish

3. vi ~/.bashrc

4. Add your command to the end of the file:fish

5.

  • source ~/.bashrc # For Bash
  • source ~/.zshrc # For Zsh
  • source ~/.config/fish/config.fish # For Fish

Related[edit]

See also[edit]

Advertising: