From 04894fe2e715a1ba1cb3f6ab19947abc56cd077b Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Mon, 19 Feb 2024 14:32:47 +0400 Subject: add guard for open() to not work on macOS --- .zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshrc b/.zshrc index 1464955..8869c4a 100644 --- a/.zshrc +++ b/.zshrc @@ -47,9 +47,11 @@ cdf() { cd "$(find ~ -type d &>/dev/null | fzf)" } +if [ "$(uname)" != "Darwin" ]; then open() { setsid xdg-open $@ } +fi set_prompt() { # red color if current user is root, otherwise - green -- cgit v1.2.3