mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] remove open
command on macOS
This commit is contained in:
parent
18ddb83d4b
commit
0c8010448d
1 changed files with 10 additions and 8 deletions
|
@ -35,15 +35,17 @@ lazy_load() {
|
||||||
|
|
||||||
welcome() { "$ZSH_DOTFILES/welcome/main.py"; }
|
welcome() { "$ZSH_DOTFILES/welcome/main.py"; }
|
||||||
|
|
||||||
if is_android; then
|
if ! is_macos; then
|
||||||
open_cmd='termux-open'
|
if is_android; then
|
||||||
elif command_exists xdg-open; then
|
open_cmd='termux-open'
|
||||||
open_cmd='nohup xdg-open &> /dev/null'
|
elif command_exists xdg-open; then
|
||||||
else
|
open_cmd='nohup xdg-open &> /dev/null'
|
||||||
open_cmd='print >&2 "open: Platform $OSTYPE is not supported"; return 1'
|
else
|
||||||
|
open_cmd='print >&2 "open: Platform $OSTYPE is not supported"; return 1'
|
||||||
|
fi
|
||||||
|
eval "open(){$open_cmd \"\$@\";}"
|
||||||
|
unset open_cmd
|
||||||
fi
|
fi
|
||||||
eval "open(){$open_cmd \"\$@\";}"
|
|
||||||
unset open_cmd
|
|
||||||
|
|
||||||
if is_macos; then
|
if is_macos; then
|
||||||
copy_cmd='pbcopy' paste_cmd='pbpaste'
|
copy_cmd='pbcopy' paste_cmd='pbpaste'
|
||||||
|
|
Loading…
Reference in a new issue