diff options
| author | Andrew Guschin <guschin@altlinux.org> | 2024-02-14 16:27:34 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin@altlinux.org> | 2024-02-14 16:27:34 +0400 |
| commit | ee050df50478a90d518db3e76d6b22b3f9b56378 (patch) | |
| tree | bd81238f217df6481216cf2639df8a31362eceb5 /.zshrc | |
| parent | 7dd8e0436be664ce4a00cccca749e792b5d2532f (diff) | |
add open() function in zshrc for macos-like use of xdg-open
Diffstat (limited to '.zshrc')
| -rw-r--r-- | .zshrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -47,6 +47,10 @@ cdf() { cd "$(find ~ -type d &>/dev/null | fzf)" } +open() { + setsid xdg-open $@ +} + set_prompt() { # red color if current user is root, otherwise - green [ "$USER" = "root" ] && UCOLOR="%B%F{red}" || UCOLOR="%B%F{green}" |