[Shell] Fix localip command
This commit is contained in:
parent
9cc972bab1
commit
10b38aec5b
@ -450,6 +450,5 @@ function which_readlink {
|
||||
}
|
||||
|
||||
function localip {
|
||||
command_exists ip && ip addr show
|
||||
alias localip="ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'"
|
||||
command_exists ip && ip addr show || ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user