Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lvv/git-prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
lvv committed Jul 6, 2012
2 parents ca9ddab + bd2ab74 commit ddadd2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion git-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ set_shell_label() {

host=${HOSTNAME}
if [[ $short_hostname = "on" ]]; then
host=`hostname -s`
if [[ "$(uname)" =~ "CYGWIN" ]]; then
host=`hostname`
else
host=`hostname -s`
fi
fi
host=${host#$default_host}
uphost=`echo ${host} | tr a-z A-Z`
Expand Down

0 comments on commit ddadd2c

Please sign in to comment.