From 84625be16704e7a0b95420940f5709835ab6c56c Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 26 Feb 2025 03:50:55 +0100 Subject: [PATCH] lkjdsaljdsaljkdsalkjdsalkj --- users/pbsds/home/profiles/bashrc.d/nix-shell.sh | 2 +- users/pbsds/home/profiles/ssh.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/users/pbsds/home/profiles/bashrc.d/nix-shell.sh b/users/pbsds/home/profiles/bashrc.d/nix-shell.sh index d36bf5f..63e58c7 100644 --- a/users/pbsds/home/profiles/bashrc.d/nix-shell.sh +++ b/users/pbsds/home/profiles/bashrc.d/nix-shell.sh @@ -11,6 +11,6 @@ function ns() { export NIXPKGS_ALLOW_INSECURE nix --extra-experimental-features "nix-command flakes" shell --impure "${args[@]}" -c sh -c 'echo $PATH' ) - test $? -eq 0 && -n "$tmp" || return 1 + [[ $? -eq 0 && -n "$tmp" ]] || return 1 export PATH="$tmp" } diff --git a/users/pbsds/home/profiles/ssh.nix b/users/pbsds/home/profiles/ssh.nix index dc2084f..9f79746 100644 --- a/users/pbsds/home/profiles/ssh.nix +++ b/users/pbsds/home/profiles/ssh.nix @@ -10,6 +10,7 @@ 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 '\*')" xssh 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 complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" remote-add