Add ssh hack

This commit is contained in:
Scott Williams 2024-02-23 16:51:59 -08:00
parent be0b990385
commit 9a4e395b60
2 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,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 "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 ssh='ssh -F <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))'
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) "'

5
ssh.conf Normal file
View file

@ -0,0 +1,5 @@
Host *
ForwardAgent yes
RemoteCommand /bin/bash --rcfile <(cat ~/.bashrc <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.bashrc))
RequestTTY yes