summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2024-02-22 17:21:44 +0000
committerdavidovski <david@davidovski.xyz>2024-02-22 17:21:44 +0000
commit51937c18e693e12b51b4a7f4a295bf79fefea8c4 (patch)
tree77ac1bae6547a9bc3dd5aaa6b1f42637ce826f79
parentab3309062e7c53623e0c4ad22ef0645d844ab18c (diff)
remove echo from mkshrc
-rw-r--r--mkshrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkshrc b/mkshrc
index fbaf10b..c0351ee 100644
--- a/mkshrc
+++ b/mkshrc
@@ -24,7 +24,7 @@ fi
[ -f ~/.sh_aliases ] && . ~/.sh_aliases
# parse the current branch and status of git to be added to the prompt
-function parse_git_branch() {
+parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
then
@@ -35,7 +35,7 @@ function parse_git_branch() {
fi
}
-function parse_git_dirty {
+parse_git_dirty () {
status=`git status 2>&1 | tee`
dirty=`echo -n "${status}" 2> /dev/null | grep "modified:" &> /dev/null; echo "$?"`
untracked=`echo -n "${status}" 2> /dev/null | grep "Untracked files" &> /dev/null; echo "$?"`
@@ -55,4 +55,4 @@ function parse_git_dirty {
bind '^L=clear-screen'
-export PS1=$(echo -e "\e[0;97m\${PWD/#\$HOME/\~}\e[0;37m\`parse_git_branch\` > \e[0;0m")
+export PS1="\${PWD/#\$HOME/\~}\`parse_git_branch\` > ")