Skip to content

Commit 483f21b

Browse files
committed
Issue #1: Load project title from the configuration file
1 parent 851a6f9 commit 483f21b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.bashrc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
PS1="\[\033[1;32m\]LOCAL: \[\033[1;33m\]\w \[\033[10;31m\]> \[\033[0m\]\[\033[0m\]"
1+
project=$(get_project)
2+
3+
if [ -z $project ]; then
4+
project="LOCAL: \[\033[1;33m\]\w"
5+
else
6+
project=$(get "${project}info_title")
7+
fi
8+
9+
PS1="\[\033[1;32m\]$project \[\033[10;31m\]> \[\033[0m\]\[\033[0m\]"
10+
11+
unset project
212

0 commit comments

Comments
 (0)