summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-05-05 22:46:18 +0200
committerAlan Pearce2023-05-05 22:46:18 +0200
commit0a1100beaed40bdfe39ad17a2b5d0f72f7de18fb (patch)
treefa4122ef51b86fe92c521f74c78e166318534372
parent1b4c5d2df091232ddd706714e67cc5a9f46765cf (diff)
downloadnixfiles-0a1100beaed40bdfe39ad17a2b5d0f72f7de18fb.tar.lz
nixfiles-0a1100beaed40bdfe39ad17a2b5d0f72f7de18fb.tar.zst
nixfiles-0a1100beaed40bdfe39ad17a2b5d0f72f7de18fb.zip
zsh: add e and se aliases to edit files (optionally via sudo)
-rw-r--r--user/settings/zsh.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index fb9bcfca..0ff7f519 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -120,6 +120,9 @@ in
       sudo = "sudo ";
       watch = "watch ";
 
+      e = "$EDITOR";
+      se = "sudo -e";
+
       d = "docker";
       db = "docker build";
       dr = "docker run";