zsh-shell-init/alias.d/osx.sh

19 lines
466 B
Bash
Raw Permalink Normal View History

2023-09-13 17:10:07 +08:00
# shellcheck shell=ksh
# osx 专属快捷 shell
fn="Wi-Fi"
alias netls="networksetup -listallnetworkservices"
alias dns_get='networksetup -getdnsservers ${fn}'
dns_rst() {
t_dns="$1"
if [ $# -eq 0 ]
then
t_dns="8.8.8.8"
fi
networksetup -setdnsservers "$fn" "$t_dns"
}
shell_dir="$HOME/.alias.d/opt"
alias clearmac="zsh '$shell_dir/clearmac.sh'"
alias PBE='open /Applications/League\ of\ Legends\ \(PBE\).app --args --locale=zh_CN'