From 13ae360f6325d5b97f4280b55367f094321abdb5 Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Fri, 23 Feb 2024 17:29:56 -0800 Subject: [PATCH] Add sshc alias for ad-hoc ssh commands --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 6e46b3f..58068ec 100644 --- a/.bashrc +++ b/.bashrc @@ -2,5 +2,6 @@ source ~/.bashrc alias vim='vim -Nu <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.vimrc)' alias tmux='tmux -f <(cat 2>/dev/null ~/.tmux.conf <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.tmux.conf))' alias ssh='$(cat 2>/dev/null /etc/ssh_config ~/.ssh/config <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/ssh.conf)>/tmp/.${UID}ssh_config) ssh -F /tmp/.${UID}ssh_config' +alias sshc="ssh -o RemoteCommand=none" alias sudo="sudo " alias sudos='sudo su -c "bash --rcfile <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.bashrc) "'