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