summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-02-14 21:26:02 +0200
committerLars Wirzenius <liw@liw.fi>2017-02-14 21:26:02 +0200
commitb1828c8d7c56a3cf7a1545bd8a2b4c3f087d5b54 (patch)
tree200594bd0c867e561634cda9e761cd50ac434cdb /bashrc
parente705f6987f1aa90b5dcd20771a3a5cbe26e906b2 (diff)
downloadliw-dot-files-b1828c8d7c56a3cf7a1545bd8a2b4c3f087d5b54.tar.gz
Only bind a key in interactive shells
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 57bff9a..afe1c3c 100644
--- a/bashrc
+++ b/bashrc
@@ -200,4 +200,7 @@ export LC_COLLATE=fi_FI.UTF-8
PROMPT_DIRTRIM=1
set +H
-bind -r ''
+if [ -n "$PS1" ]
+then
+ bind -r ''
+fi