mirror of https://github.com/ashhhleyyy/fsh.git
feat: show hostname only on remote shells
This commit is contained in:
parent
3b45d2e7c4
commit
82bc7477ac
5
home.nix
5
home.nix
|
@ -21,6 +21,11 @@ in
|
||||||
home.packages = [ pkgs.fsh ];
|
home.packages = [ pkgs.fsh ];
|
||||||
programs.fish.functions.fish_prompt.body = ''
|
programs.fish.functions.fish_prompt.body = ''
|
||||||
set FSH_LAST_STATUS $status
|
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
|
fsh $FSH_LAST_STATUS
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue