git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix missing slashes in short dir.
[profile.git]
/
.profile.d
/
ps1.bashrc
diff --git
a/.profile.d/ps1.bashrc
b/.profile.d/ps1.bashrc
index
4f249c9
..
991095b
100644
(file)
--- a/
.profile.d/ps1.bashrc
+++ b/
.profile.d/ps1.bashrc
@@
-240,7
+240,8
@@
function __ps1_short() {
n=$((n+1))
done
- echo "$short$dirname"
+ [ "${short:0:1}" = "~" ] || short="/$short"
+ echo "$short/$dirname"
return $1
}