Skip to content

Commit

Permalink
Added command 'git__update_date'.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Jun 10, 2017
1 parent 40fb4e5 commit 96e3597
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .bash_profile__git
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,11 @@ function gitify {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo -e "\n[GIT $(__git__remote_name) $(__git__dirty)] $(__git__status)"
}

#####################
### GIT - UTILITY ###
#####################

function git__update_date {
git commit --amend --date "`date -R`" --no-edit
}
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ This is a collection of bash utilities. It contains:
- [x] Bash Completions for Git, Svn, SSH and SFTP.
- [x] set/unset proxy faster.
- [x] Updatable `bash_profile` project.
- [ ] Pygmentize


## Get started
Expand Down Expand Up @@ -52,7 +51,9 @@ curl http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/bash_com
curl https://gist.githubusercontent.com/marcomontalbano/7c48f6756e4e4133c30fdb8e1fff3100/raw -o ~/bash_profile/.bash_completion_ssh
```

## Bash Profile
## Useful Commands

### Bash Profile

- **bash_profile__path** - get project path.

Expand All @@ -66,7 +67,7 @@ curl https://gist.githubusercontent.com/marcomontalbano/7c48f6756e4e4133c30fdb8e

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

## Utilities
### General

Below a list of utilities that you can use on command line or your own .bash_profile.

Expand All @@ -86,6 +87,10 @@ Below a list of utilities that you can use on command line or your own .bash_pro

- **java__use_jdk** - if you work with different version of JDK, you can easily switch with `java__use_jdk 1.8`. _(only for OS X)_

### Git

- **git__update_date** - update last commit with current date. _(only for OS X)_


## PS1 customization

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

0 comments on commit 96e3597

Please sign in to comment.