nvim-mini/functions.sh
2025-04-02 18:06:12 +02:00

3 lines
102 B
Bash

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