Fixed up alias on macos
This commit is contained in:
parent
6453723338
commit
79a80b58bb
2
.zshrc
2
.zshrc
@ -251,7 +251,7 @@ function ...... () {cd ../../../../../}
|
||||
function up() {
|
||||
for ip in $(ifconfig | awk "/inet .*$1/ {print \$2}" | cut -d / -f 1)
|
||||
do
|
||||
for filepath in $(find . -maxdepth 1 -type f -name '[^.]*' -printf '%f\n')
|
||||
for filepath in $(find . -maxdepth 1 -type f -name '[^.]*' | cut -d '/' -f 2-)
|
||||
do
|
||||
echo "http://$ip/$filepath"
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user