feat: switch to fish as an interactive shell
All checks were successful
/ check (push) Successful in 8s
/ check-renovaterc (push) Successful in 4s
/ build-packages (push) Successful in 14s
/ build-vm (push) Successful in 2s
/ report-size (push) Successful in 4s

Now that it is written in Rust I am interested!
This commit is contained in:
Jalil David Salamé Messina 2025-03-23 21:44:28 +01:00
parent 6bf3851d5a
commit cd4fb19335
Signed by: jalil
GPG key ID: F016B9E770737A0B
6 changed files with 117 additions and 139 deletions

View file

@ -58,6 +58,11 @@ in
git = true;
icons = "auto";
};
# Shell
fish = {
enable = true;
preferAbbrs = true; # when defining an alias, prefer instead to define an abbreviation
};
# GnuPG
gpg = {
enable = true;
@ -75,16 +80,6 @@ in
ssh.enable = true;
# cd replacement
zoxide.enable = true;
# Shell
zsh = {
enable = true;
autosuggestion.enable = true;
enableCompletion = true;
autocd = true;
dotDir = ".config/zsh";
history.path = "${config.xdg.dataHome}/zsh/zsh_history";
syntaxHighlighting.enable = true;
};
};
services = {

View file

@ -129,13 +129,13 @@ in
# PDF reader
zathura.enable = true;
# Auto start sway
zsh.loginExtra =
lib.optionalString cfg.sway.autostart # sh
fish.loginShellInit =
lib.optionalString cfg.sway.autostart # fish
''
# Start Sway on login to TTY 1
if [ "$TTY" = /dev/tty1 ]; then
if test "$(tty)" = /dev/tty1
exec sway
fi
end
'';
};
services = {