Fixed up alias on macos

This commit is contained in:
Random936 2023-12-13 11:19:59 -08:00
parent 6453723338
commit 79a80b58bb

2
.zshrc
View File

@ -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