diff --git a/.bin/whoamip b/.bin/whoamip index 45d6586..4181daa 100755 --- a/.bin/whoamip +++ b/.bin/whoamip @@ -1,2 +1,5 @@ #!/usr/bin/env bash -ip addr show $@ | awk '/inet / {gsub(/\/.*/,"",$2); print $2}' + +# Get local IP + +ip addr show $@ | awk '/inet / {gsub(/\/.*/,"",$2); print $2}' | tail -n 1