Skip to content

Commit

Permalink
Release 1.4.4
Browse files Browse the repository at this point in the history
- added proxy settings for rsync
- added Windows support for self-update
- added "What's New" section after update
- update README.md
  • Loading branch information
marcomontalbano committed May 8, 2017
1 parent 7fef224 commit dd4ac8d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function bash_profile__reload_all {
# bash_profile update
function bash_profile__update {
message=`git -C $(bash_profile__path) checkout . && git -C $(bash_profile__path) pull -r`
if [[ $message == *"is up to date"* ]]; then
if [[ $message == *"is up to date"* || $message == *"up-to-date"* ]]; then
echo;
echo -e "$COLOR_ALT_CYAN""----------------------"
echo -e "$COLOR_ALT_CYAN""BASH_PROFILE"
Expand All @@ -115,7 +115,7 @@ function bash_profile__update {
fi
}

# set the console title (OSX Terminal only)
# set the console title (OSX Terminal and Windows GitBash only)
function console__set_title {
title="$1"
trap 'echo -ne "\033]0;"$title"\007"' DEBUG
Expand All @@ -140,6 +140,8 @@ function proxy__set {
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTPS_PROXY

export RSYNC_PROXY=$HTTP_PROXY

if [[ $(cli__is_installed npm) == true ]]; then
export npm_config_proxy=$HTTP_PROXY
export npm_config_https_proxy=$HTTPS_PROXY
Expand All @@ -161,6 +163,8 @@ function proxy__unset {
unset http_proxy
unset https_proxy

unset RSYNC_PROXY

if [[ $(cli__is_installed npm) == true ]]; then
unset npm_config_proxy
unset npm_config_https_proxy
Expand Down Expand Up @@ -241,6 +245,8 @@ function __bash_profile__check_updates {
echo -e "$COLOR_ALT_GREEN""BASH_PROFILE"
echo -e "$COLOR_GREEN""updated to version $(bash_profile__version)"
echo -e "$COLOR_ALT_GREEN""---------------------------"
echo;
echo -e "$COLOR_GREEN""🗣 What's New - https://goo.gl/EKaOnc"
echo -e "$COLOR_NORMAL"
rm $(bash_profile__path)/UPDATED
fi
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ 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 -p <http_proxy> -u
source ~/bash_profile/.bash_profile -u
```

### Options
Expand Down Expand Up @@ -69,7 +69,7 @@ Below a list of utilities that you can use on command line or your own .bash_pro

- **bash_profile__update** - update the `bash_profile` project with latest changes. Is "just" a `git pull` :smile:

- **console__set_title** - set a console title. _(only for OS X)_
- **console__set_title** - set a console title. _(only for OS X and Windows)_

- **cli__is_installed** - check if a program is installed on your system. *`cli__is_installed node` will return `true` if node is installed on your system, `false` otherwise.*

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

0 comments on commit dd4ac8d

Please sign in to comment.