Skip to content

Commit

Permalink
[Bash] Added the number of remainings task in my PS1 thanks to very n…
Browse files Browse the repository at this point in the history
…ice TODO HATEOAS API
  • Loading branch information
lyrixx committed Aug 10, 2013
1 parent 24ee2cd commit 2890bf5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,12 @@ function _truncate_pwd() {
fi
}

PROMPT_COMMAND='_set_exit_color;_truncate_pwd;PS1="$EXITCOLOR$PROMPT_PREFIX$Cyan[$PWD2]$NoColor$PS1GIT "'
#PS1='[\W]\[\e[0m\]\[\e[01;34m\]$(__git_ps1 "(%s)")\[\e[0m\] ' # Oneline, trainging
function _todo_number() {
TODO_NB=`find ~/Desktop -maxdepth 1 -type f | wc -l`
}

PROMPT_COMMAND='_set_exit_color;_truncate_pwd;_todo_number;PS1="$EXITCOLOR$NoColor($TODO_NB)$PROMPT_PREFIX$Cyan[$PWD2]$NoColor$PS1GIT "'
#PS1='[\W]\[\e[0m\]\[\e[01;34m\]$(__git_ps1 "(%s)")\[\e[0m\] ' # Oneline, training
#PS1='\[\e[01;33m\]\u@\H\[\e[00;32m\][\w]\[\e[0m\]\[\e[01;34m\]$(__git_ps1 "(%s)")\[\e[0m\] ' # Oneline, Old

# Symfony2 autocompletion
Expand Down

3 comments on commit 2890bf5

@jakeasmith
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition. I like that.

@lyrixx
Copy link
Owner Author

@lyrixx lyrixx commented on 2890bf5 Aug 11, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ;)

@caarlos0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Please sign in to comment.