From c124a992662914644115044a36b3fc45572da197 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Tue, 17 Jan 2023 15:29:06 +0500 Subject: [PATCH] root function --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 22d0561..5d8934f 100644 --- a/bashrc +++ b/bashrc @@ -1,4 +1,3 @@ - PATH=$HOME/.scripts:/opt:$PATH HISTSIZE=999999 HISTFILESIZE=999999 @@ -38,6 +37,7 @@ math(){ echo $1 | bc;} checkip(){ dig $1 +short;} # search for term and edit first file with that specific text edit(){ nano $(grep $1 * -R | awk '{print $1}'|cut -f1 -d ':' | head -n1);} +root(){su -c "$@";} ###############################################################################