summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-06-26 14:05:57 +0200
committerAdrian Kummerlaender2020-06-26 14:06:42 +0200
commitf2ab7580c19fc7914ebfb0e9cf3a8dd109d09d4e (patch)
tree01b55a232b2e7ad9ef5d5a047ca7005e73ea3aac
parent498180ec85a5c547a20c401f012aa2e97b34481d (diff)
downloadnixos_system-f2ab7580c19fc7914ebfb0e9cf3a8dd109d09d4e.tar
nixos_system-f2ab7580c19fc7914ebfb0e9cf3a8dd109d09d4e.tar.gz
nixos_system-f2ab7580c19fc7914ebfb0e9cf3a8dd109d09d4e.tar.bz2
nixos_system-f2ab7580c19fc7914ebfb0e9cf3a8dd109d09d4e.tar.lz
nixos_system-f2ab7580c19fc7914ebfb0e9cf3a8dd109d09d4e.tar.xz
nixos_system-f2ab7580c19fc7914ebfb0e9cf3a8dd109d09d4e.tar.zst
nixos_system-f2ab7580c19fc7914ebfb0e9cf3a8dd109d09d4e.zip
Accommodate dumb clients in fish
e.g. Emacs tramp
-rw-r--r--fish.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/fish.nix b/fish.nix
index d1e46c9..3f061b6 100644
--- a/fish.nix
+++ b/fish.nix
@@ -25,6 +25,11 @@
promptInit = ''
function fish_prompt
+ if test $TERM = "dumb"
+ echo "\$ "
+ return 0
+ end
+
set last_status $status
if not set -q __fish_prompt_normal