From 82bc7477ace17762775a309de004ffe8a308c399 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Mon, 13 Nov 2023 01:47:40 +0000 Subject: [PATCH] feat: show hostname only on remote shells --- home.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home.nix b/home.nix index 6ba9a62..5927679 100644 --- a/home.nix +++ b/home.nix @@ -21,6 +21,11 @@ in home.packages = [ pkgs.fsh ]; programs.fish.functions.fish_prompt.body = '' set FSH_LAST_STATUS $status + if test "$SSH_CLIENT" != "" || test "$SSH_TTY" != "" | test "$SSH_CONNECTION" != "" + set --erase FSH_NO_HOSTNAME + else + set -x FSH_NO_HOSTNAME 1 + end fsh $FSH_LAST_STATUS ''; };