From f6d8dfd62079337ee026ade0217547f2e28124c5 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 17 Jul 2023 11:06:17 +0200 Subject: [PATCH] Alias to call previous command with sudo --- zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zshrc b/zshrc index 85693e5..e91980b 100644 --- a/zshrc +++ b/zshrc @@ -76,6 +76,8 @@ alias less='less -r' alias pp='fc -e -' # Call last command in edit mode alias ppe='fc' +# Call last command with sudo +alias pps='sudo $(fc -ln -1)' # fdfind ## disregard vcs ignore files (.gitignore…) as homedir is a git repository…