From 01e488783b6d4e0ba94fda8cc67d49c8b52aebf6 Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Fri, 28 Feb 2020 05:55:45 -0500 Subject: [PATCH] Fix prompt errors on Solaris. --- config/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/.bashrc b/config/.bashrc index 1ba3efa..c6b8084 100755 --- a/config/.bashrc +++ b/config/.bashrc @@ -160,7 +160,7 @@ if [ -n "$PS1" ]; then # svn branch if exist # if [ -n "$prompt_check_svn" ]; then - local svn_rev=$(svn info . 2> /dev/null | awk -F ':' '/Revision:/ { print $2 }') + local svn_rev=$(svn info . 2> /dev/null | nawk -F ':' '/Revision:/ { print $2 }') if [ -n "$svn_rev" ]; then svn_text="@$svn_rev" PS1+="\[$c_branch\]\$svn_text" # svn revision