Skip to content

Commit fd42f44

Browse files
seefoodakinomyoga
andauthored
Update themes/powerturk/powerturk.theme.bash
Co-authored-by: Koichi Murase <[email protected]>
1 parent dd9438c commit fd42f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/powerturk/powerturk.theme.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ _swd() {
4848
current="" # The section of the path we're currently working on.
4949
end="${2:-${PWD}}/" # The unmodified rest of the path.
5050

51-
if [[ "$end" =~ $HOME ]]; then
51+
if [[ "$end" == "$HOME"* ]]; then
5252
INHOME=1
5353
end="${end#"$HOME"}" #strip /home/username from start of string
5454
begin="${HOME}" #start expansion from the right spot

0 commit comments

Comments
 (0)