diff options
| author | Andrew Guschin <guschin@altlinux.org> | 2024-02-19 14:32:47 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin@altlinux.org> | 2024-02-19 14:32:47 +0400 |
| commit | 04894fe2e715a1ba1cb3f6ab19947abc56cd077b (patch) | |
| tree | a1f2c6fe7e7bfd279c6de1ad92587a6fafd7c953 /.zshrc | |
| parent | 2e385f64b09be2391e52f2450203c0f92aa0e24d (diff) | |
add guard for open() to not work on macOS
Diffstat (limited to '.zshrc')
| -rw-r--r-- | .zshrc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |