zsh: http servers

This commit is contained in:
He4eT 2023-01-17 20:02:03 +03:00
commit 8aee136ae5

View file

@ -107,5 +107,9 @@ alias ga.='ga . && gst'
alias fakemsg='echo "$(curl -s https://whatthecommit.com/index.txt)"' alias fakemsg='echo "$(curl -s https://whatthecommit.com/index.txt)"'
alias gcmsgrnd='git commit -m "$(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")" 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 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm