Permalink
Browse files

Fix stty error on scp

  • Loading branch information...
1 parent be0ba63 commit 1cb876fdd1daf30e3c324dfc585b1118bf92bda4 @tpope tpope committed Apr 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .bashrc
View
@@ -28,7 +28,7 @@ bind '"\C-w": backward-kill-word'
export HISTIGNORE="%*"
bind '"\C-q": "%-\n"'
bind '"\C-z": "\C-a%-\n"'
-trap 'stty susp ^Z' DEBUG
+[ ! -t ] || trap 'stty susp ^Z' DEBUG
export PROMPT_COMMAND='stty susp undef'
[ -z "$PS1" ] || stty -ixon

2 comments on commit 1cb876f

Contributor

jgdavey replied Apr 11, 2012

Thanks! This was driving me nuts!

Collaborator

tpope replied Apr 11, 2012

To be fair, I'm the guy that broke it.

Please sign in to comment.