1

refactor: move fish aliases into shell.nix

This commit is contained in:
Himadri Bhattacharjee
2024-05-24 10:56:54 +05:30
parent 8d4b0f7076
commit 5b1b268ed2
2 changed files with 5 additions and 8 deletions

View File

@@ -120,14 +120,6 @@
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
programs.fish = {
enable = true;
shellAliases = {
ls = "${pkgs.eza}/bin/eza -la --icons=always";
cat = "bat -p";
};
};
# Define a user account. Don't forget to set a password with passwd.
users.users.h = {
isNormalUser = true;
@@ -172,6 +164,7 @@
shell = pkgs.fish;
};
programs.fish.enable = true;
# Enable nix-command for search and flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

@@ -3,6 +3,10 @@
{
programs.fish = {
enable = true;
shellAliases = {
ls = "${pkgs.eza}/bin/eza -la --icons=always";
cat = "${pkgs.bat}/bin/bat -p";
};
functions = {
fish_prompt = {
body = ''