diff options
author | Kyle K <kylek389@gmail.com> | 2014-10-01 23:56:38 -0500 |
---|---|---|
committer | Kyle K <kylek389@gmail.com> | 2014-10-01 23:56:38 -0500 |
commit | 8ddf7216ee940a180c700b677378a26f535db30f (patch) | |
tree | 2d690ccde808522824b6c81a77595b47c759063c /myconfig.sh | |
parent | 9c8b9917f4b817dbdd7dbb668a9ef6dffeac1690 (diff) | |
download | configs-8ddf7216ee940a180c700b677378a26f535db30f.tar.gz configs-8ddf7216ee940a180c700b677378a26f535db30f.tar.bz2 configs-8ddf7216ee940a180c700b677378a26f535db30f.zip |
begin addendum to .bashrc
Diffstat (limited to 'myconfig.sh')
-rwxr-xr-x | myconfig.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/myconfig.sh b/myconfig.sh new file mode 100755 index 0000000..e0ebd69 --- /dev/null +++ b/myconfig.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# use it like this in .bashrc +# +# if [[ -f ~/.myconfig.sh ]]; then +# source ~/.myconfig.sh +# fi + +# git completion and custom PS1 +source /usr/share/git/completion/git-prompt.sh +GIT_PS1_SHOWDIRTYSTATE=1 +PS1='\[\e[1;37m\][\[\e[m\]\[\e[1;32m\]\u\[\e[m\]@\[\e[1;37m\]\h\[\e[m\] \[\e[1;36m\]\w\[\e[m\]\[\e[1;33m\]$(__git_ps1 " (%s)")\[\e[m\]\[\e[1;37m\]]\[\e[m\]\[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]' + +# aliases +alias bb='history -c && history -w && reset' + |