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