Compare commits

...

2 Commits

Author SHA1 Message Date
Giulio De Pasquale
e40f70d16d shell: switch to fish 2023-09-22 00:41:57 +02:00
Giulio De Pasquale
3b6fae08e4 shell: switch to fish 2023-09-22 00:41:53 +02:00
2 changed files with 28 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
imports = [ ./zsh.nix ./git.nix ./helix.nix ];
imports = [ ./fish.nix ./git.nix ./helix.nix ];
home = {
packages = with pkgs; [

27
roles/home/fish.nix Normal file
View File

@ -0,0 +1,27 @@
{ config, pkgs, lib, ... }:
{
home.packages = with pkgs; [ any-nix-shell fishPlugins.tide fishPlugins.bass ];
programs.fish = {
enable = true;
shellAbbrs = {
"_" = "sudo";
};
shellInit = ''
# avoid macOS updates to destroy nix
# if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
# source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
# end
any-nix-shell fish --info-right | source
# source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
# disable autosuggestions
set -g fish_autosuggestion_enabled 0
'';
};
}