diff options
Diffstat (limited to 'fzf-url.sh')
-rwxr-xr-x | fzf-url.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -16,6 +16,8 @@ fzf_filter() { } open_url() { + #set -x + #echo "browser is $BROWSER" if hash xdg-open &>/dev/null; then nohup xdg-open "$@" elif hash open &>/dev/null; then @@ -23,8 +25,15 @@ open_url() { elif [[ -n $BROWSER ]]; then nohup "$BROWSER" "$@" fi + #set +x } +# source user environment before running xdg-open or $BROWSER if they +# redefine it. +if [ -e ~/.config/shell/environment ]; then + source ~/.config/shell/environment +fi + limit='screen' [[ $# -ge 2 ]] && limit=$2 |