chore: move some fish abbr to nixpkgs
This commit is contained in:
parent
2ce0b93271
commit
4131b5512b
3 changed files with 22 additions and 9 deletions
|
@ -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";
|
||||
|
|
|
@ -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
19
modules/programs/fish.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue