From 79a80b58bb6a65b2c7f9efc03d8621f3f878ad18 Mon Sep 17 00:00:00 2001 From: Random936 Date: Wed, 13 Dec 2023 11:19:59 -0800 Subject: [PATCH] Fixed up alias on macos --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 77f63c6..f6ec7c4 100644 --- a/.zshrc +++ b/.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