From 6a9cd5b5d2a0476369420ef713bd7f546f0fb855 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sat, 27 Jan 2024 11:11:12 -0800 Subject: [PATCH] Add cd .. aliases --- modules/beatific.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/beatific.nix b/modules/beatific.nix index 6d7d5f1..0432d4b 100644 --- a/modules/beatific.nix +++ b/modules/beatific.nix @@ -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" ];