Skip to content

Commit

Permalink
change prompt for ruby - skroutz settings
Browse files Browse the repository at this point in the history
  • Loading branch information
papanikge committed Oct 4, 2016
1 parent 236424f commit 57e2abd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .bash_prompt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ _prompt_git () {
state=$(git status --porcelain 2>/dev/null)
# I have "-n" in GREP_OPTIONS so I need that last cut command. Maybe I should remove it...
branch=$(git branch --no-color | fgrep "*" | cut -d' ' -f2)
prompt="$(tput sgr0)on $(tput setaf 11)"
prompt="$(tput sgr0)on $(tput setaf 11)git:"

# Checking for detached state
if [[ ${branch:0:1} == "(" ]]; then
Expand Down Expand Up @@ -50,7 +50,7 @@ _prompt_env () {
[[ -n "$VIRTUAL_ENV" ]] && echo "$(tput setaf 5)[virtualenv]"
[[ -d cabal-dev ]] && echo "$(tput setaf 5)[cabal-dev]"
[[ -f cabal.sandbox.config ]] && echo "$(tput setaf 5)[cabal-sandbox]"
[[ -f *.gemspec || -f .ruby-version ]] && echo "$(tput setaf 5)[$(ruby --version | cut -d' ' -f1,2)]"
echo "$(tput setaf 8)[$(ruby --version | cut -d' ' -f1,2)]"
}

export PS1='\n$(_prompt_color)\u $(tput sgr0)at $(tput setaf 13)\H $(tput sgr0)in $(tput setaf 4)\w $(_prompt_git)$(_prompt_env) $(tput sgr0)\n→ '
export PS1='\n$(_prompt_color)\u $(tput sgr0)in $(tput setaf 4)\w $(_prompt_git)$(_prompt_env) $(tput sgr0)\n→ '
2 changes: 2 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@
autocorrect = 1
[branch]
autosetuprebase = always
[url "[email protected]:"]
insteadOf = skroutz:

0 comments on commit 57e2abd

Please sign in to comment.