From 8aee136ae5e7eab672861f684faee726fa2042cf Mon Sep 17 00:00:00 2001 From: He4eT Date: Tue, 17 Jan 2023 20:02:03 +0300 Subject: [PATCH] zsh: http servers --- root/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/root/.zshrc b/root/.zshrc index 636dbce..995d6dd 100644 --- a/root/.zshrc +++ b/root/.zshrc @@ -107,5 +107,9 @@ alias ga.='ga . && gst' alias fakemsg='echo "$(curl -s https://whatthecommit.com/index.txt)"' alias gcmsgrnd='git commit -m "$(curl -s https://whatthecommit.com/index.txt)"' +alias here-http='hostname -I && python3 -m http.server' +alias here-http-cors='npx http-server -p 8080 --cors' +alias here-https='PORT=8080 npx https-localhost' + export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm