Write it to your ~/.zshrc to enable those scripts.
# if you want to enable proxy
HTTP_PROXY_ADDR=http://127.0.0.1:12345
source /path/to/project/location/main.zshNote
- Remember to change the proxy port number to you own.
- this repository used some third-party packages:
zoxide,eza,ripgrep,fnm,node,jq,gum...etc
brew install zoxide eza ripgrep fnm node jq gum- ..:
cd .. - ...:
cd ../.. - lsa:
ls -a - cp:
cp -i - mv:
mv -i - public_ip:
dig +short myip.opendns.com @resolver1.opendns.com - local_ip:
ipconfig getifaddr en0 - ips:
ifconfig -a \| grep -oE inet6? (addr:)?\s?((([0-9]+.){3}[0-9]+)\|[a-fA-F0-9:]+) \| awk {sub(/inet6? (addr:)? ?/, \\); print} - cp:
nocorrect cp - man:
nocorrect man - mkdir:
nocorrect mkdir - mv:
nocorrect mv - sudo:
nocorrect sudo - su:
nocorrect su
- dps:
docker ps -a --format table {{.Names}}\t{{.Image}}\t{{.Status}} - dip:
docker inspect -f {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} - dstart:
docker start - dstop:
docker stop
- gaa:
git add . - gc:
git commit -m - gca:
git commit -am - gcam:
git commit --amend --no-edit - gp:
git push - gpl:
git pull - gcl:
git clone - gcl1:
git clone --depth 1 - gl:
git log --oneline --cherry - gll:
git log --graph --cherry --pretty - gsl:
git shortlog - gtl:
git tag -l - gtd:
git tag -d - gba:
git branch -a - gbd:
git branch --delete - gbrn:
git branch -m - gs:
git switch - gst:
git status -s - gcat:
git cat-file - gcf:
git config -l - gcln:
git clean -xdf - gdf:
git difftool - gho:
git hash-object - gundo:
git reset --soft HEAD^
- showfiles:
defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder - hidefiles:
defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder - spotlightoff:
sudo mdutil -a -i off - spotlighton:
sudo mdutil -a -i on
-
npm
-
pip
- clean_maven
- clean_aira2
- clean_ds_store
- global_clean
- clear_downloads
- gi
- major
- zsh_time
- cht
- get_status_code
- set_npm_proxy
- unset_npm_proxy
- set_npm_mirror
- reset_npm_mirror
- set_cli_proxy
- unset_cli_proxy
- set_git_proxy
- unset_git_proxy
- set_pip_mirror
- reset_pip_mirror
- set_docker_mirror
- set_rustup_mirror
- reset_rustup_mirror
- set_cargo_proxy
- unset_cargo_proxy
- set_cargo_mirror
- reset_cargo_mirror
- proxy
- unproxy
- reset_brew_mirror
- set_brew_mirror
- _calc_ram
- ram
- dud
- dua
- dun
- port
- pid
- update_node
- update_node_global_pkg
- update_rust
- update_python
- global_update