function p if contains -- -d $argv # 如果参数中包含 -d set -u all_proxy else set -x all_proxy "localhost:7897" end end