minus-squarejwt@programming.devtoLinux@lemmy.ml•Share a script/alias you use a lotlinkfedilinkarrow-up5·edit-22 days agoWe almost have the same setup then, I use ssh_hostnames=$(grep "^Host " ~/.ssh/config | awk '!/*/ {print $2}') for host in $ssh_hostnames do alias $host="ssh $host" done in my .bash_aliases to parse the ~/.ssh/config file and cut off the 'ssh ’ part automatically for every Host I have in there. linkfedilink
minus-squarejwt@programming.devtoLinux@lemmy.ml•Share a script/alias you use a lotlinkfedilinkarrow-up3·2 days agoYou can also use ssh shorthands in ~/.ssh/config linkfedilink
minus-squarejwt@programming.devtoLinux@lemmy.ml•Share a script/alias you use a lotlinkfedilinkarrow-up4·2 days agoWith the added benefit of it looking like you’re yelling at your prompt in order to get it to use sudo. linkfedilink
minus-squarejwt@programming.devtoLinux@lemmy.ml•Occurences of swearing in the Linux kernel source code over timelinkfedilinkarrow-up13·9 days agoMeh, crap is barely a swear word is it? linkfedilink
We almost have the same setup then, I use
ssh_hostnames=$(grep "^Host " ~/.ssh/config | awk '!/*/ {print $2}') for host in $ssh_hostnames do alias $host="ssh $host" done
in my .bash_aliases to parse the ~/.ssh/config file and cut off the 'ssh ’ part automatically for every Host I have in there.