mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Update functions
This commit is contained in:
parent
9110615621
commit
9de00590d0
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue