summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2017-01-16 07:16:21 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2017-01-16 07:22:34 +0100
commitd934eaa089ee8be6238399de7130d45906a88a00 (patch)
tree29974c789e664066079e4be3710933576601c8bc
parentd7279500270a28ad8588cc3ee17c1d18af0c73b5 (diff)
downloaddotfiles-d934eaa089ee8be6238399de7130d45906a88a00.tar.xz
Work around TRAMP issue
TRAMP fails to connect to remote hosts that set this prompt.
-rw-r--r--.bash_prompt6
1 files changed, 6 insertions, 0 deletions
diff --git a/.bash_prompt b/.bash_prompt
index a892c73..b42217f 100644
--- a/.bash_prompt
+++ b/.bash_prompt
@@ -6,6 +6,12 @@
# anything else: Never show hostname
+if [ "${TERM}" = "dumb" ]
+then
+ return
+fi
+
+
__show-hostname ()
{
case "${PS1_SHOWHOSTNAME}" in