From f95be5057135ad3565ee524bf61e6403acc81300 Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Mon, 20 Jul 2020 17:37:03 -0400 Subject: [PATCH] Edit hosts file with sudo --- zsh/aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/aliases b/zsh/aliases index 73ccd45..a13e1eb 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -52,7 +52,7 @@ alias zrc='edit $DOTS/zsh/zrcsh.symlink' alias reload='source ~/.zshrc' alias runbootstrap='$DOTS/scripts/bootstrap' alias sshc='edit ~/.ssh/config' -alias hosts='edit /etc/hosts' +alias hosts='edit /sudo:root@localhost:/etc/hosts' # Navigation shortcuts alias dots='cd $DOTS'