added condition for windows
added promptrc condition for windows
rearranged condition