Wrap ssh so that we use a TERM commonly known by servers

This commit is contained in:
Charlotte Van Petegem 2020-02-29 21:27:09 +01:00
parent 0ad479c124
commit 0a88804fc0
2 changed files with 19 additions and 6 deletions

View file

@ -45,6 +45,22 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
htop htop
inotify-tools inotify-tools
(
symlinkJoin {
name = "openssh";
paths = [
(
pkgs.writeScriptBin "ssh" ''
#!${zsh}/bin/zsh
export TERM=xterm-256color
${openssh}/bin/ssh $@
''
)
openssh
];
}
)
unzip unzip
]; ];
}; };

View file

@ -2,15 +2,12 @@ with import <nixpkgs> {};
{ {
home-manager.users.charlotte = { pkgs, ... }: { home-manager.users.charlotte = { pkgs, ... }: {
nixpkgs.overlays = [ home.packages = [
( (
self: super: { pkgs.neovim.override {
neovim = super.neovim.override { configure = (import ./base.nix { inherit pkgs; });
configure = (import ./base.nix { pkgs = self; });
};
} }
) )
]; ];
home.packages = [ pkgs.neovim ];
}; };
} }