Skip to content

Commit

Permalink
bashrc: work around mintty/wsltty#197
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrogers committed Jul 3, 2020
1 parent 5dd7211 commit 8050efb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions home/.bashrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Check for an interactive session
[ -z "$PS1" ] && return

# work around https://github.com/mintty/wsltty/issues/197
if [[ -n "$WSL_DISTRO_NAME" ]]; then
command -v cmd.exe > /dev/null || return
fi

# shell options
shopt -s checkwinsize
shopt -s histappend
Expand Down

0 comments on commit 8050efb

Please sign in to comment.