Skip to content

Commit

Permalink
Merge pull request lvv#17 from juanpabloaj/cygwin
Browse files Browse the repository at this point in the history
hostname in cygwin
  • Loading branch information
lvv committed Jul 6, 2012
2 parents 39902fd + 6abb898 commit bd2ab74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion git-prompt.sh
Expand Up @@ -297,7 +297,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 bd2ab74

Please sign in to comment.