Added commandline tools

This commit is contained in:
2023-12-19 17:49:25 -04:00
parent 22dc9f16fb
commit e96fb19078
8 changed files with 60 additions and 23 deletions

25
home/shell/rip.nix Normal file
View File

@@ -0,0 +1,25 @@
{pkgs, ...}: {
home.packages = with pkgs; [
rm-improved
];
# TODO: Replace this with confirm once packaged
home.shellAliases = {
confirm = ''
read -p "Are you sure? [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
$argv
fi
'';
rm = ''
confirm rm $argv
'';
rmdir = ''
confirm rmdir $argv
'';
};
}