[NixOS] Add df_ssh

This commit is contained in:
Ivan Malison 2021-08-21 17:39:43 -06:00
parent 8bd0b1cb10
commit 7a511b3e13
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -38,8 +38,11 @@ with lib;
environment = {
homeBinInPath = true;
localBinInPath = true;
shellAliases = {
df_ssh = "TERM='xterm-256color ssh -o StrictHostKeyChecking=no'";
};
interactiveShellInit = ''
vterm_printf(){
vterm_printf(){
if [ -n "$TMUX" ] && ([ "''${TERM%%-*}" = "tmux" ] || [ "''${TERM%%-*}" = "screen" ] ); then
# Tell tmux to pass the escape sequences through
printf "\ePtmux;\e\e]%s\007\e\\" "$1"