From 662b5f11b76f5eb1ea825bf2efb74beeca20e916 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 21 Jan 2023 09:16:41 +0800 Subject: Make open command as binary --- .functions | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to '.functions') diff --git a/.functions b/.functions index 879804c..fe48470 100644 --- a/.functions +++ b/.functions @@ -1,15 +1,5 @@ #!/usr/bin/env bash -open () { - if [ -f /usr/bin/xdg-open ]; then - nohup xdg-open "$*" > /dev/null 2>&1 & - elif [ -f /usr/bin/open ]; then - /usr/bin/open "$*" - else - echo "No usable program is found" - fi -} - greview () { usage='usage: greview ' if [ $# -lt 1 ]; then @@ -24,6 +14,6 @@ greview () { # "+nmap :tabpreivous" vim $(git diff --merge-base --name-only $base_branch) \ - "+nmap gd :Gvdiffsplit $base_branch" + "+nmap gd :Gvdiffsplit $base_branch" } -- cgit v1.2.3