File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
tests/modules/programs/powerline-go Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 165
165
}
166
166
167
167
if [ "$TERM" != "linux" ]; then
168
- PROMPT_COMMAND="_update_ps1;$PROMPT_COMMAND"
168
+ if [[ ";'' ${PROMPT_COMMAND:-};" != *";_update_ps1;"* ]]; then
169
+ PROMPT_COMMAND="_update_ps1'' ${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
170
+ fi
169
171
fi
170
172
'' ;
171
173
Original file line number Diff line number Diff line change 26
26
assertFileContains \
27
27
home-files/.bashrc \
28
28
'/bin/powerline-go -error $old_exit_status -shell bash -modules nix-shell -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
29
+ assertFileContains \
30
+ home-files/.bashrc \
31
+ 'if [[ ";'' ${PROMPT_COMMAND:-};" != *";_update_ps1;"* ]]; then'
29
32
'' ;
30
33
}
You can’t perform that action at this time.
0 commit comments