Skip to content

Commit

Permalink
feat: enable flush_dns alias on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Nov 28, 2024
1 parent a86d506 commit 9e08161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .zshrc.local
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ PROXY=http://127.0.0.1:7890
# PROXY2=http://127.0.0.1:8123

# Aliases
# alias flush_dns='sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder'
[[ $OSTYPE == darwin* ]] && alias flush_dns='sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder'

# Homebrew
if [[ $OSTYPE == darwin* ]]; then
Expand Down

0 comments on commit 9e08161

Please sign in to comment.