33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
{pkgs, ...}: {
|
|
imports = [./colors.nix];
|
|
programs.fish = {
|
|
enable = true;
|
|
shellAliases = {
|
|
"lg" = "${pkgs.lazygit}/bin/lazygit";
|
|
"cat" = "${pkgs.bat}/bin/bat";
|
|
"gls" = "${pkgs.exa}/bin/exa -lah@ --icons --git --git-ignore --no-user";
|
|
"ls" = "${pkgs.exa}/bin/exa --icons -a";
|
|
"ll" = "${pkgs.exa}/bin/exa --icons -lah@";
|
|
"lt" = "${pkgs.exa}/bin/exa --icons --tree -a";
|
|
"hmr" = "${pkgs.home-manager}/bin/home-manager build --flake ~/nix && ${pkgs.home-manager}/bin/home-manager switch --flake ~/nix";
|
|
"tt" = "${pkgs.taskwarrior-tui}/bin/taskwarrior-tui";
|
|
};
|
|
shellInit = ''
|
|
set -x GPG_TTY (tty)
|
|
set -x SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket)
|
|
gpgconf --launch gpg-agent
|
|
'';
|
|
|
|
plugins = [
|
|
{
|
|
name = "nix-env";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "lilyball";
|
|
repo = "nix-env.fish";
|
|
rev = "7b65bd228429e852c8fdfa07601159130a818cfa";
|
|
sha256 = "sha256-RG/0rfhgq6aEKNZ0XwIqOaZ6K5S4+/Y5EEMnIdtfPhk=";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|