summaryrefslogtreecommitdiff
path: root/func.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'func.zsh')
-rwxr-xr-xfunc.zsh22
1 files changed, 19 insertions, 3 deletions
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 <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
+}