Skip to content

Commit

Permalink
Added options for proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed May 2, 2017
1 parent 80c1c16 commit e9d3a6d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,16 @@ function __bash_profile__splash_screen {
###############

OPTIND=1
while getopts "wu" OPT; do
while getopts "wup:" OPT; do
case $OPT in
w)
__bash_profile__splash_screen
;;
u)
(bash_profile__update > /dev/null 2>&1 &)
;;
p)
proxy__set $OPTARG
;;
esac
done
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ Open and modify your `~/.bash_profile` on OS X and Windows or `~/.bashrc` on Ubu

```sh
# https://github.com/marcomontalbano/bash_profile
source ~/bash_profile/.bash_profile -u
source ~/bash_profile/.bash_profile -p <http_proxy> -u
```

### Options

- `-p <http-proxy>`: combined with `-u`, you can use self-update behind proxy.
- `-u`: enables self-update for bash_profile. (the latest release will automatically downloaded and loaded)
- `-w`: show welcome screen on new tabs.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.1
1.4.2

0 comments on commit e9d3a6d

Please sign in to comment.