Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix stty error on scp

  • Loading branch information...
commit 1cb876fdd1daf30e3c324dfc585b1118bf92bda4 1 parent be0ba63
@tpope tpope authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  .bashrc
View
2  .bashrc
@@ -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

@jgdavey
Owner

Thanks! This was driving me nuts!

@tpope
Collaborator

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

Please sign in to comment.
Something went wrong with that request. Please try again.