Update functions

This commit is contained in:
ItsDrike 2021-03-23 12:30:44 +01:00 committed by GitHub
parent 9110615621
commit 9de00590d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,12 @@ function dir-size() {
fi; fi;
} }
function randmac() {
sudo ip link set dev $1 down
sudo macchanger -A $1
sudo ip link set dev $1 up
}
# Go to the root of a git tree # Go to the root of a git tree
cdgit () { cdgit () {
git rev-parse --is-inside-work-tree > /dev/null 2>&1 git rev-parse --is-inside-work-tree > /dev/null 2>&1