chore: move some fish abbr to nixpkgs

This commit is contained in:
Nydragon 2024-09-29 03:37:20 +02:00
parent 2ce0b93271
commit 4131b5512b
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
3 changed files with 22 additions and 9 deletions

View file

@ -4,16 +4,9 @@
enable = true;
shellAbbrs = {
clip = "wl-copy";
l = "eza -laa";
ls = "eza -la";
ll = "eza -l";
cat = "bat";
sd = ''cd "$(dirname "$HOME/$(env --chdir ~ fzf)")"'';
mkdir = "mkdir --parent";
cp = "cp -vi";
mv = "mv -vi";
rm = "rm -v";
nrepl = "nix repl --expr 'import <nixpkgs> {}'";
};
functions = {
gitignore = "curl -sL https://www.gitignore.io/api/$argv";

View file

@ -17,6 +17,7 @@
./programs/steam.nix
./programs/hyprland.nix
./programs/ssh.nix
./programs/fish.nix
./system/printing.nix
./system/audio.nix

19
modules/programs/fish.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
users.defaultUserShell = pkgs.fish;
programs.fish = {
enable = true;
shellAbbrs = {
mkdir = "mkdir --parent";
cp = "cp -vi";
mv = "mv -vi";
rm = "rm -v";
nrepl = "nix repl --expr 'import <nixpkgs> {}'";
l = "eza -laa";
ls = "eza -la";
ll = "eza -l";
cat = "bat";
};
};
}