summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorAndrew Guschin <guschin@altlinux.org>2024-02-19 14:32:47 +0400
committerAndrew Guschin <guschin@altlinux.org>2024-02-19 14:32:47 +0400
commit04894fe2e715a1ba1cb3f6ab19947abc56cd077b (patch)
treea1f2c6fe7e7bfd279c6de1ad92587a6fafd7c953 /.zshrc
parent2e385f64b09be2391e52f2450203c0f92aa0e24d (diff)
add guard for open() to not work on macOS
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc2
1 files changed, 2 insertions, 0 deletions
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