[zsh] remove open command on macOS

This commit is contained in:
Dmytro Meleshko 2019-11-16 15:04:10 +02:00
parent 18ddb83d4b
commit 0c8010448d

View file

@ -35,6 +35,7 @@ lazy_load() {
welcome() { "$ZSH_DOTFILES/welcome/main.py"; }
if ! is_macos; then
if is_android; then
open_cmd='termux-open'
elif command_exists xdg-open; then
@ -44,6 +45,7 @@ else
fi
eval "open(){$open_cmd \"\$@\";}"
unset open_cmd
fi
if is_macos; then
copy_cmd='pbcopy' paste_cmd='pbpaste'