![]() With Zsh I set up some aliases to make my life easier: # My Aliases alias rm = ' rm -i ' alias cp = ' cp -i ' alias mv = ' mv -i ' alias mkdir = ' mkdir -p ' alias h = ' history ' alias which = ' type -a ' alias. The biggest difficulty when moving to Fish is the change in how aliases work. Using Fish comes with a few oddities that we’ll have to deal with. $ echo " starship init fish | source " > $HOME /.config/fish/config.fishĪnd with that, we should be using our Starship prompt with Fish! Fish Oddities The next major change we want to do to our Fish configuration file is tie in Starship.rs. The above commands make sure we have a folder to hold our Fish configuration and sets my EDITOR variable to emacs. Let’s create the file we need: $ mkdir -p $HOME /.config/fish $ echo " set -gx EDITOR emacs " > $HOME /.config/fish/config.fish Where we make these changes is a bit different. If you have done any customization of Zsh or Bash you are already familiar with this concept. To facilitate the configuration of Fish, we need to create a config file. The shell prides itself on clear defaults and powerful built-in features.īut I am a tinkerer and need to configuration Fish a bit. On the homepage for Fish is the above quote. No configuration needed: fish is designed to be ready to use immediately, without requiring extensive configuration. These commands mean you are officially using Fish as your shell. Note: You can always type exit to get back to your default shell.īut we want a more permanent solution, below is how we add Fish to our available shells and set it as default: $ echo /usr/local/bin/fish | sudo tee -a /etc/shells $ chsh -s /usr/local/bin/fish ![]() Type fish and see that you can start using Fish right away. min_time = 4 show_milliseconds = false disabled = false format = " □ $duration($style) " style = " bold italic #87A752 " Installing FishĪfter completing the install through homebrew, jump into the fish terminal. It seems to work for me for now, but terminal prompts are so personal: command_timeout = 10000 # Inserts a blank line between shell prompts add_newline = true. With Starship installed, let’s update the terminal a bit.Ĭreate a configuration file for Starship: $ mkdir -p $HOME /.config $ touch $HOME /.config/starship.tomlįeel free to read this documentation to customize your prompt how you like it. Run the below command and get Fish installed as well! $ brew install starship fish You need to install Starship.rs through Homebrew. Since I am on a Macbook Pro and already set up homebrew as my package manager, installing Starship.rs was easy. If you want to see why you should make this switch without reading all my specific setup, click here Installing Starship.rs With everything back up in the air, I thought this would be a great time to try the Fish shell! ![]() Switching to Starship.rs meant I broke up with Oh-My-Zsh, and thus Zsh. It was an amazing experience, and I recently had that experience again with Starship.rs. Powered by Oh-My-Zsh, my terminal was powerful and helpful.Īdd on top of that Oh-My-Zsh amazing templates it was also pretty! I remember the day that I switched from the default shell Bash to ZSH. I have been using Zsh for almost a decade. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |