diff options
author | William Carroll <wpcarro@gmail.com> | 2019-04-03T16·21+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-04-03T16·21+0100 |
commit | a414fefa03d2fadd17806d94786a085f5f4b0012 (patch) | |
tree | e10a45fa640a9353cfa03c5e0288e401b35322e0 | |
parent | c492c8f4bf3798f2de759bfc5a1f3b5363ee218e (diff) |
Reintroduce nohup to browse function
Updates the implementation to ensure that the nohup.txt file isn't created.
-rw-r--r-- | configs/shared/zsh/functions.zsh | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/configs/shared/zsh/functions.zsh b/configs/shared/zsh/functions.zsh index c0f6e21e4613..6aa7da46d6a5 100644 --- a/configs/shared/zsh/functions.zsh +++ b/configs/shared/zsh/functions.zsh @@ -375,7 +375,10 @@ nix_store() { browse() { # Open a URL in $BROWSER. Friendly for terminal input and output. - "$BROWSER" $@ & + # NOTE: `nohup` ensures that if I close the terminal, I won't all kill the + # browser. Maybe this is similar to calling `disown %<job_id>`. The redirect + # to `/dev/null` ensures that no `nohup.out` file is created. + nohup "$BROWSER" $@ >/dev/null 2>&1 & } lh() { @@ -600,13 +603,6 @@ tmux_focused_pane() { } # Google3 -g3_root() { - # Outputs the root of the CitC client in g3 - # NOTE: there is probably a function already supported by g4 to cd to the - # root, so support for this function may be dropped shortly. - echo "${PWD%%/google3/*}/google3" -} - p4_filelog() { # Logs a file's Piper history. This is a convenience wrapper around # `p4 filelog`. |