diff --git a/.bash_profile b/.bash_profile index 0b69ebd..02e9ca8 100644 --- a/.bash_profile +++ b/.bash_profile @@ -287,7 +287,7 @@ 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 @@ -295,5 +295,8 @@ while getopts "wu" OPT; do u) (bash_profile__update > /dev/null 2>&1 &) ;; + p) + proxy__set $OPTARG + ;; esac done diff --git a/README.md b/README.md index 3215eb8..b5db087 100644 --- a/README.md +++ b/README.md @@ -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 -u ``` ### Options +- `-p `: 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. diff --git a/VERSION b/VERSION index 347f583..9df886c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.1 +1.4.2