We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd9438c commit fd42f44Copy full SHA for fd42f44
themes/powerturk/powerturk.theme.bash
@@ -48,7 +48,7 @@ _swd() {
48
current="" # The section of the path we're currently working on.
49
end="${2:-${PWD}}/" # The unmodified rest of the path.
50
51
- if [[ "$end" =~ $HOME ]]; then
+ if [[ "$end" == "$HOME"* ]]; then
52
INHOME=1
53
end="${end#"$HOME"}" #strip /home/username from start of string
54
begin="${HOME}" #start expansion from the right spot
0 commit comments