From 9f3c2630e1a0135e83e855867c341c4a428de304 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 27 Oct 2026 11:01:52 +0800 Subject: bump: zsh omz->zim --- func.zsh | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'func.zsh') diff --git a/func.zsh b/func.zsh index a8191ea..5114ec6 100755 --- a/func.zsh +++ b/func.zsh @@ -117,7 +117,7 @@ function git-svn(){ svn export "$repo/trunk/$2" else echo "Use: git-svn " - fi + fi } # vim with auto sudo @@ -379,7 +379,7 @@ function path () function vimake () { - if [ -e "Makefile" ]; then + if [ -e "Makefile" ]; then $EDITOR Makefile else printf "No Makefile" @@ -388,7 +388,7 @@ function vimake () function vimpkg () { - if [ -e "PKGBUILD" ]; then + if [ -e "PKGBUILD" ]; then nvim PKGBUILD else printf "No PKGBUILD" @@ -442,3 +442,19 @@ function createrepo() { function tempsend() { bw send $@ 2>/dev/null | jq -r '.accessUrl' } + +function mkcd() { + mkdir -p $1 && cd $1 +} + +function webserver() { + echo "clearing background jobs" + fg &>/dev/null + echo "starting python webserver in background" + sudo python3 -m http.server 80 & + echo "forwarding with cloudflare" + cloudflared tunnel --url http://127.0.0.1:80 + fg + fg &>/dev/null + fg &>/dev/null +} -- cgit v1.2.3