[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 = { environment = {
homeBinInPath = true; homeBinInPath = true;
localBinInPath = true; localBinInPath = true;
shellAliases = {
df_ssh = "TERM='xterm-256color ssh -o StrictHostKeyChecking=no'";
};
interactiveShellInit = '' interactiveShellInit = ''
vterm_printf(){ vterm_printf(){
if [ -n "$TMUX" ] && ([ "''${TERM%%-*}" = "tmux" ] || [ "''${TERM%%-*}" = "screen" ] ); then if [ -n "$TMUX" ] && ([ "''${TERM%%-*}" = "tmux" ] || [ "''${TERM%%-*}" = "screen" ] ); then
# Tell tmux to pass the escape sequences through # Tell tmux to pass the escape sequences through
printf "\ePtmux;\e\e]%s\007\e\\" "$1" printf "\ePtmux;\e\e]%s\007\e\\" "$1"