addet functions.sh to source from when in terminal input mode

This commit is contained in:
piecka 2025-04-02 16:27:42 +02:00
parent a0dfeda288
commit 0b4f569797
2 changed files with 51 additions and 25 deletions

3
functions.sh Normal file
View file

@ -0,0 +1,3 @@
get_ip() {
ip a | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | cut -d/ -f1 | head -n 1
}