Author: Arialdo Martini <arialdomartini@gmail.com> Date: Sun Sep 8 13:03:32 2013 +0200 By default does not print a symbol when the correspondent flag is false commit f2e3a20c199c52410770b66fd0bc73bc1af7a178 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Thu Sep 5 22:12:34 2013 +0200 tag symbol is close to tag name commit 581888319592d2e74f5319151191e4709b48ba24 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Thu Sep 5 08:29:12 2013 +0200 It does not fire any errors when in a brand new repository commit 7d8f4eac042ff2c8ad35dd6431c262a147ba199e Author: Arialdo Martini <arialdomartini@gmail.com> Date: Fri Sep 6 17:03:07 2013 +0200 Shut up and take my money is an animated gif commit fbd9341c649616ecf58a4cd402e63b9ddff6eee3 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Fri Sep 6 15:44:54 2013 +0200 "Known bugs" specifies the need for an unicode font commit b135765cabb9ec3803bc3c17dd64d6832200537d Author: Arialdo Martini <arialdomartini@gmail.com> Date: Fri Sep 6 15:20:39 2013 +0200 Update README.md README.md has "Installation", "Known bugs" and "zsh version" sections commit 966c06ab9fadb1b6438ac1775656ff77414e9f32 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Fri Sep 6 15:01:49 2013 +0200 README.md has all the sample images commit e7a7c07427a590e379f78706234e6b789800f54d Author: Arialdo Martini <arialdomartini@gmail.com> Date: Wed Sep 4 22:56:51 2013 +0200 Is a git repo has a violet symbol commit 249b7170000d9c7af019ac3f7837edc2e7a2d32c Author: Arialdo Martini <arialdomartini@gmail.com> Date: Wed Sep 4 22:36:13 2013 +0200 a star is displayed when stash list is not empty commit 87a75f7d7744a248bbcf9de053395d23ebaaf1b1 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Wed Sep 4 22:28:03 2013 +0200 detached symbol is not overwritten commit 475805526bee4bc1efea3ffdcf67138592512973 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Wed Sep 4 20:17:21 2013 +0200 number of ahead/behind commits, should push, can fast forward and has diverged sybols are set correctly commit 8d32b73a46f51947f98e1c418181d89cc49ce136 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Wed Sep 4 08:47:18 2013 +0200 When not in a git repo, the prompt does not use two lines commit fc42bd7a577fb58671fdee8a2c642eb881ad5656 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Wed Sep 4 08:45:20 2013 +0200 Has modifications cached has a nicer symbol commit 5c0092061da5968796aa8b7798c86d91c782c275 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Wed Sep 4 08:38:57 2013 +0200 ready to commit is displayed only when no files are left to cache commit 20e74a8159032130e714a72f5ce4c1ad40a548d2 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Wed Sep 4 08:13:30 2013 +0200 when browsing bash history the cursor is no shifted anymore commit d8b3c75047d54f5759ad77c8616e194bbb8cb46d Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 23:35:13 2013 +0200 tags are detected correctly commit dd7f87d054432dcc2ab52dac5114fdc8ddb0173f Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 23:20:44 2013 +0200 tag in last position; has diverged and can fast-forward work commit bd94ce0058a3631c99692e8e277cdff7d133fd5c Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 22:02:15 2013 +0200 the number of commits behind or ahead is correct even after a push commit 71d2975e6aba5ef5e89549b8a763535ca20afe64 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 19:11:22 2013 +0200 the number of commits from or to the remote branch is correctly calculated commit c6e25a79c03bc40f6bb749413aaf46a7cb3ebe37 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 18:47:06 2013 +0200 display of tag name is optional commit 48ccb29b257bfb644b66f7d10bdf61353bc7abe2 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 18:41:00 2013 +0200 if on a tag, it displays a symbol and the tag name commit 05577400d6f0576db0fa0f2481058f72642fbf27 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 09:14:58 2013 +0200 it doesn't display an extra space if no ahead/behind message needs to be printed commit 745bb609f8a77432c8d1e97ec33c33768ff33476 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 08:57:36 2013 +0200 Shows how many commits the branch is behind or ahead its upstream commit 9b972b61431aacf3d1d4245e6bdbaf22ab4df618 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 08:35:50 2013 +0200 Symbols can be overwritten commit a7d727b8005338825d5ec656692cce2a219f2a8b Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 07:54:15 2013 +0200 The prompt is displayed in two lines commit 27f64033827d08951b6d38d408e9a1068606cbda Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Sep 3 07:47:52 2013 +0200 fake Will merge, will rebase commit a48b0acabd56b12153103d2795f5ba0c678398b8 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Mon Sep 2 23:27:36 2013 +0200 Support for just initialized repositories commit 694e1f854e0dc31a8d96b21a9d2d11fd22b5bc78 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Mon Sep 2 22:59:09 2013 +0200 It displays added and removed files commit f254267b28cdcc43df9ffe8522e9a59fef00630e Author: Arialdo Martini <arialdomartini@gmail.com> Date: Mon Sep 2 20:11:54 2013 +0200 if upstream branch has the same name as the local one, the name is omitted commit d86af5c1e960138bb4a027d460d4f9131839dca2 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Mon Sep 2 19:15:33 2013 +0200 The upstream branch is shown commit c397ff3c92c78124f1574a222533bbb696e5eee1 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Mon Sep 2 19:12:27 2013 +0200 Using only enrich commit 064812ae41bba73a95b499c28d3d890094f40f57 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Mon Sep 2 19:00:26 2013 +0200 refactoring commit c1fc8c0151c92c64679229402c8f16cf9954fb28 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Mon Sep 2 08:49:50 2013 +0200 one-line if-then-elses commit bb9e173fd2eeb8d416a1e87c1b6294811ff6360c Author: Arialdo Martini <arialdomartini@gmail.com> Date: Mon Sep 2 08:31:05 2013 +0200 Refactoring, partly working commit e51614216b9116f69ef21b4d1fcf2b71894693d3 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Mon Sep 2 00:59:21 2013 +0200 Flags for modifications, indexed and untracked commit 12360123b4222abe5654d9d8db73b698f443838e Author: Arialdo Martini <arialdomartini@gmail.com> Date: Mon Sep 2 00:02:16 2013 +0200 Displays a yellow heart if the current directory is a git repository commit 5ad1ac07bbc6c51ef73e7b4a1d9e03f72e5bbb19 Author: Arialdo Martini <arialdomartini@gmail.com> Date: Tue Aug 20 06:52:00 2013 -0700 Initial commit for commits counts
oh-my-git!
![alt tag](https://raw.github.com/arialdomartini/oh-my-git/gh-pages/images/samples/01-not in a git repo.jpg) ![alt tag](https://raw.github.com/arialdomartini/oh-my-git/gh-pages/images/samples/02-in a git repo.jpg) ![alt tag](https://raw.github.com/arialdomartini/oh-my-git/gh-pages/images/samples/03-on master.jpg) ![alt tag](https://raw.github.com/arialdomartini/oh-my-git/gh-pages/images/samples/06-a typical session.jpg) ![alt tag](https://raw.github.com/arialdomartini/oh-my-git/gh-pages/images/samples/07-tracking branch.jpg) ![alt tag](https://raw.github.com/arialdomartini/oh-my-git/gh-pages/images/samples/08-explicit upstream.jpg)
Installation
Fork the repo and git clone it in your home directory Then add
source $HOME/oh-my-git/prompt.sh
to the bash startup file (~/.profile on Mac, .bash_profile or .bashrc on Linux)
Known bugs and limitations
- It works weird on brand new repositories, before the first commit
- It has been tested on Mac only
- You need an unicode font (like Menlo or Monaco on Mac OS X)
zsh version
Coming soon. I'm working on the integration with zsh + oh-my-zsh + antigen Wanna help? Great! Fork it! It will be really appreciated!