Skip to content

Instantly share code, notes, and snippets.

@lepig
Last active April 1, 2020 02:41
Show Gist options
  • Save lepig/b519d4a3ee5e1762ee5a5870317036bb to your computer and use it in GitHub Desktop.
Save lepig/b519d4a3ee5e1762ee5a5870317036bb to your computer and use it in GitHub Desktop.
zsh alias settings
function hs() {
( cd ~/Homestead && vagrant $* )
}
function proxy() {
export http_proxy=http://127.0.0.1:1080
export https_proxy=$http_proxy
echo "Done"
}
function disproxy() {
unset http_proxy https_proxy
echo "Has Disabled"
}
function ggg() {
CURR_DATE=$(date +'%Y-%m-%d %H:%M:%S')
#print $CURR_DATE
git commit -v -am "$CURR_DATE" && git pull --rebase -v && git push -v
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment