Add sshc alias for ad-hoc ssh commands

This commit is contained in:
Scott Williams 2024-02-23 17:29:56 -08:00
parent c3c1bdfe32
commit 13ae360f63

View file

@ -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 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 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 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 sudo="sudo "
alias sudos='sudo su -c "bash --rcfile <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.bashrc) "' alias sudos='sudo su -c "bash --rcfile <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.bashrc) "'