shell: switch to fish
This commit is contained in:
parent
3b6fae08e4
commit
e40f70d16d
27
roles/home/fish.nix
Normal file
27
roles/home/fish.nix
Normal 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user