Move modules folders

This commit is contained in:
Filippo Berto 2025-09-11 14:00:31 +02:00
parent 914909009c
commit c1101e7b45
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
183 changed files with 327 additions and 327 deletions

View file

@ -1,47 +0,0 @@
let
common = {
"jc" = "journalctl";
"jcu" = "journalctl --user";
"n" = "nix";
"nb" = "nix build";
"nr" = "nix repl";
"nR" = "nix run";
"ns" = "nix search nixpkgs";
"nsu" = "nix search unstable";
"nss" = "nix search stable";
"nS" = "nix shell";
"sc" = "systemctl";
"scu" = "systemctl --user";
"rm" = "rm -i"; # Remove a file
"cp" = "cp -i"; # Copy a file
"mv" = "mv -i"; # Move a file
"dud" = "du -d 1 -h"; # Display the size of files at depth 1 in current location in human-readable form
"t" = "tail -f"; # Shorthand for tail which outputs the last part of a file
"grep" = "grep --color"; # Searches for a query string
"sgrep" = "grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS}"; # Useful for searching within files
"h" = "history"; # Lists all recently used commands
"hgrep" = "fc -El 0 | grep"; # Searches for a word in the list of previously used commands
"help" = "man"; # Opens up the man page for a command
"sortnr" = "sort -n -r"; # Used to sort the lines of a text file
"unexport" = "unset"; # Used to unset an environment variable
};
sh_only = {
"nf" = "find /nix/store/ -maxdepth 1 | grep";
"duf*" = "du -sh"; # Display the size of files in current location in human-readable form
"fd*" = "find . -type d -name"; # Find a directory with the given name
"ff" = "find . -type f -name"; # Find a file with the given name
"p" = "ps -f"; # Displays currently executing processes
};
in
{
home.shellAliases = common;
programs.bash.shellAliases = common // sh_only;
programs.zsh.shellAliases = common // sh_only;
}