From 4a4827adbf6c2f56c199e8900631c656484f959a Mon Sep 17 00:00:00 2001 From: tracer Date: Thu, 28 May 2020 12:08:18 +0200 Subject: [PATCH] modified fake sudo --- .zshrc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index e9b064b..aeb89b6 100644 --- a/.zshrc +++ b/.zshrc @@ -22,10 +22,7 @@ export PROMPT='$(cdbm -add)'$PROMPT function c() { dir=$(cdbm 3>&1 1>&2 2>&3); cd $dir; } function pb() { echo "$1" | nc pastebin.24unix.net 9999 } function sudo() { - arguments=$@ - command=$1 - arguments=${arguments[@]/$command} - eval "$command $arguments" + $@ } neofetch