diff options
Diffstat (limited to 'ar/.local/bin/gitopenbranch')
| -rwxr-xr-x | ar/.local/bin/gitopenbranch | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ar/.local/bin/gitopenbranch b/ar/.local/bin/gitopenbranch index 56c8d12..a3a32d4 100755 --- a/ar/.local/bin/gitopenbranch +++ b/ar/.local/bin/gitopenbranch @@ -17,7 +17,8 @@ esac # Check if inside a git repository if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then current_branch=$(git rev-parse --abbrev-ref HEAD) - gh repo view --branch "$current_branch" --web || $open_cmd "$(gh repo view --branch "$current_branch" --json url -q '.url')" + # Open in browser, suppressing all output + nohup gh repo view --branch "$current_branch" --web >/dev/null 2>&1 & else echo "Not a git repository." exit 1 |
