Fish shell
Fish is the superior shell with sensible defaults.
Installation#
brew install fish
Find the path to the fish installation.
which fish
Add fish
to known shells.
/opt/homebrew/bin/fish
Restart terminal. May need to restart laptop.
Set fish
as default shell
chsh -s /opt/homebrew/bin/fish
Add brew
to the $PATH
in your config.fish
file.
fish_add_path /opt/homebrew/bin
It is (by default) safe to use fish_add_path in config.fish.
Wrap brew
with Homebrew-file
in your config.fish
file.
if test -f (brew --prefix)/etc/brew-wrap.fish source (brew --prefix)/etc/brew-wrap.fishend
fish_config
Starship#
Starship is a cross-shell prompt that has a customizable config file.
Installation#
Install the binary using devbox
devbox add starship
Add the init hook
starship init fish | source
Alternatives#
Tide is a customizable prompt for fish
.
Installation#
fisher install IlanCosman/tide@v6
Configure the prompt.
tide configure
zoxide#
zoxide makes changing directories a breeze by remembering the directories that you frequently visit and letting you fuzzy jump to the directory you want. But honestly, I use the Git Repos Raycast extension far more than zoxide
.
Installation#
Install zoxide
with devbox
.
devbox add zoxide
Add zoxide init fish | source
to the end of your config.fish
.
zoxide init fish | source
Some people like to change the command to run zoxide
to cd
using the —cmd flag. You can do this by changing the zoxide init
command in your config.fish
file but I found it annoying that fish
would highlight the arguments to cd
with red syntax highlighting.
Alternatives#
z is a native fish
plugin that also lets you change directories with a snippet of the actual directory’s name.
Installation#
fisher install jethrokuan/z
bat#
bat is the better cat
alternative.
Installation#
devbox add bat
fd#
fd is the better find
alternative.
Installation#
devbox add fd
eza#
eza is the better ls
alternative.
Installation#
devbox add eza
Fisher#
Fisher is a plugin manager for fish
.
Installation#
brew install fisher
fzf#
fzf is a general-purpose command-line fuzzy finder. I find this to be really useful for searching through my command history.
fzf.fish adds nice keybindings for fzf
.
Installation#
Install fzf
devbox add fzf
Install fzf.fish
fisher install PatrickF1/fzf.fish
Usage#
Show command history: CTRL + R
colima#
Installation#
brew install colima qemu
Optionally run colima
as a brew service so that it starts on login.
brew services start colima
Configure DOCKER_HOST
:
set -Ux DOCKER_HOST "unix://$HOME/.colima/docker.sock"
Optionally, configure TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE
for testcontainers.
set -Ux TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE /var/run/docker.sock
Usage#
Start colima
colima start
If something is wrong, usually it’s good to just restart colima
:
colima restart