1
1
Fork 0

Add cd .. aliases

This commit is contained in:
Tim Van Baak 2024-01-27 11:11:12 -08:00
parent d162e2262b
commit 6a9cd5b5d2
1 changed files with 5 additions and 2 deletions

View File

@ -59,11 +59,14 @@ in {
environment.shellAliases = {
# Shortcut for nixos-rebuild
nr = "sudo nixos-rebuild --fast --flake $HOME/nixos-configs";
# Set some user-friendly defaults (use e.g. "command cp" to skip the alias)
# -r (recursively copy dirs) -p (preserve mode, ownership, timestamps)
# Always preserve mode, ownership, ts with copy
cp = "cp -rp";
xo = "xdg-open";
smv = "rsync -v --remove-source-files";
".." = "cd ..";
"..." = "cd ../..";
"...." = "cd ../../..";
"....." = "cd ../../../..";
};
security.sudo.extraRules = [{
users = [ "tvb" ];