diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-10-27 11:01:52 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-10-27 11:01:52 +0800 |
| commit | 9f3c2630e1a0135e83e855867c341c4a428de304 (patch) | |
| tree | be60f1632c06ec6a210f548f71a6b95c9df7922c /func.zsh | |
| parent | 5a79c24580d935ad9c3febf7911da2ecc82e03ee (diff) | |
bump: zshmain
omz->zim
Diffstat (limited to 'func.zsh')
| -rwxr-xr-x | func.zsh | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -117,7 +117,7 @@ function git-svn(){ svn export "$repo/trunk/$2" else echo "Use: git-svn <repository> <subdirectory>" - 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 +} |
