From 1b333f7c1fc21f90a6972784edd6ac1be07b814f Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Wed, 24 Apr 2019 15:26:03 +0200 Subject: Updated files --- bash/.bashrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bash') diff --git a/bash/.bashrc b/bash/.bashrc index 9d8f705..36d9a13 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -76,6 +76,10 @@ is_alias() { fi } +tunnel() { + ssh -R ${1}:80:127.0.0.1:${2} serveo.net +} + # Set autocomplete for sudo if exists complete && exists sudo; then complete -cf sudo @@ -184,8 +188,9 @@ elif exists screenfetch; then screenfetch fi -if exists brew && [ -f "$(brew --prefix)/etc/bash_completion" ]; then - source "$(brew --prefix)/etc/bash_completion" +BASH_COMPLETION="$(brew --prefix)/etc/bash_completion" +if exists brew && [ -f "${BASH_COMPLETION}" ]; then + source "${BASH_COMPLETION}" fi # heroku autocomplete setup -- cgit v1.2.3