diff options
Diffstat (limited to 'bash/.bashrc')
| -rwxr-xr-x | bash/.bashrc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 9d8f705..36d9a13 100755 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -76,6 +76,10 @@ is_alias() { | |||
| 76 | fi | 76 | fi |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | tunnel() { | ||
| 80 | ssh -R ${1}:80:127.0.0.1:${2} serveo.net | ||
| 81 | } | ||
| 82 | |||
| 79 | # Set autocomplete for sudo | 83 | # Set autocomplete for sudo |
| 80 | if exists complete && exists sudo; then | 84 | if exists complete && exists sudo; then |
| 81 | complete -cf sudo | 85 | complete -cf sudo |
| @@ -184,8 +188,9 @@ elif exists screenfetch; then | |||
| 184 | screenfetch | 188 | screenfetch |
| 185 | fi | 189 | fi |
| 186 | 190 | ||
| 187 | if exists brew && [ -f "$(brew --prefix)/etc/bash_completion" ]; then | 191 | BASH_COMPLETION="$(brew --prefix)/etc/bash_completion" |
| 188 | source "$(brew --prefix)/etc/bash_completion" | 192 | if exists brew && [ -f "${BASH_COMPLETION}" ]; then |
| 193 | source "${BASH_COMPLETION}" | ||
| 189 | fi | 194 | fi |
| 190 | 195 | ||
| 191 | # heroku autocomplete setup | 196 | # heroku autocomplete setup |
