From ef9b1822544029b811ffa748b2d52f7481829bc7 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 29 Jan 2025 10:25:35 +0100 Subject: [PATCH] tssh --- users/pbsds/home/profiles/shell.nix | 1 - users/pbsds/home/profiles/ssh.nix | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/users/pbsds/home/profiles/shell.nix b/users/pbsds/home/profiles/shell.nix index f89a19c..4f61b28 100644 --- a/users/pbsds/home/profiles/shell.nix +++ b/users/pbsds/home/profiles/shell.nix @@ -107,7 +107,6 @@ in home.shellAliases.grep = "grep --color"; home.shellAliases.diff = "diff -u --color"; # eyo home.shellAliases.ip = "ip -br -color"; - home.shellAliases.rssh = "ssh -l root"; home.shellAliases.watch = "watch -c "; # colors home.shellAliases.sudo = "sudo "; # support aliases home.shellAliases.xargs = "xargs "; # support aliases diff --git a/users/pbsds/home/profiles/ssh.nix b/users/pbsds/home/profiles/ssh.nix index 6fbdbb6..70d6d77 100644 --- a/users/pbsds/home/profiles/ssh.nix +++ b/users/pbsds/home/profiles/ssh.nix @@ -1,9 +1,14 @@ { pkgs, ... }: { + + home.shellAliases.tssh = "ssh -t"; + home.shellAliases.rssh = "ssh -l root"; + programs.bash.initExtra = '' # ssh autocomplete if test -f ~/.ssh/config; then complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" ssh + complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" tssh complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" rssh complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" scp complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" remote-init