root function
This commit is contained in:
parent
40e6023c83
commit
c124a99266
2
bashrc
2
bashrc
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
PATH=$HOME/.scripts:/opt:$PATH
|
PATH=$HOME/.scripts:/opt:$PATH
|
||||||
HISTSIZE=999999
|
HISTSIZE=999999
|
||||||
HISTFILESIZE=999999
|
HISTFILESIZE=999999
|
||||||
@ -38,6 +37,7 @@ math(){ echo $1 | bc;}
|
|||||||
checkip(){ dig $1 +short;}
|
checkip(){ dig $1 +short;}
|
||||||
# search for term and edit first file with that specific text
|
# search for term and edit first file with that specific text
|
||||||
edit(){ nano $(grep $1 * -R | awk '{print $1}'|cut -f1 -d ':' | head -n1);}
|
edit(){ nano $(grep $1 * -R | awk '{print $1}'|cut -f1 -d ':' | head -n1);}
|
||||||
|
root(){su -c "$@";}
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user