git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d1d3e8
)
Fix missing slashes in short dir.
author
Iain Patterson
<me@iain.cx>
Fri, 20 May 2016 12:15:14 +0000
(13:15 +0100)
committer
Iain Patterson
<me@iain.cx>
Tue, 24 May 2016 09:16:34 +0000
(10:16 +0100)
.profile.d/ps1.bashrc
patch
|
blob
|
history
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
}