Skip to content

Commit 6cd31f0

Browse files
committed
cdn bash function
1 parent d98f26c commit 6cd31f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

home-manager/shell.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ in
4848
exec Hyprland &> /dev/null
4949
fi
5050
51+
cdn() {
52+
curl --interface tailscale0 -X PUT -F "file=@$1" http://kvm-large:7080/api/v1/upload/blob &&
53+
echo "\nhttps://cdn.micartey.dev/api/v1/download/blob/"$1
54+
}
55+
5156
bindkey "^[[1;5C" forward-word
5257
bindkey "^[[1;5D" backward-word
5358
'';

0 commit comments

Comments
 (0)