Difference between revisions of "How to run automatically fish on your terminal"
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
1. <code>echo $SHELL</code> | 1. <code>echo $SHELL</code> | ||
+ | |||
2. | 2. | ||
− | + | * Bash: <code>~/.bashrc or ~/.bash_profile</code> | |
− | + | * Zsh: <code>~/.zshrc</code> | |
− | + | * Fish: <code>~/.config/fish/config.fish</code> | |
+ | |||
+ | 3. <code>vi ~/.bashrc</code> | ||
+ | |||
+ | 4. Add your command to the end of the file:<code>fish</code> | ||
+ | 5. | ||
+ | * <code>source ~/.bashrc</code> # For Bash | ||
+ | * <code>source ~/.zshrc </code> # For Zsh | ||
+ | * <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 Bashsource ~/.zshrc
# For Zshsource ~/.config/fish/config.fish
# For Fish
Related[edit]
See also[edit]
- Fish shell,
fish_config, fish vi key bindings, set --export
, Search as you type, Fisher,~/.config/fish/config.fish, fish_add_path
- Shell: Fish shell,
sh
,Bash
,ksh
,zsh
,ash
, PowerShell (Windows),/usr/bin/env
,.hushlogin
,dash
,tcsh
, Shell redirection,dquote, $SHELL
, Google Cloud Shell, AWS CloudShell, explainshell.com, vmware_vm_shell, Nushell, Fig.io, direnv
Advertising: