allow config.d for ssh
This commit is contained in:
@@ -25,8 +25,8 @@ _current_mounts() {
|
||||
|
||||
_hosts() {
|
||||
{
|
||||
grep -Pi -e "^host ([^*]+)$" $HOME/.ssh/config | grep -e "#.sshfs";
|
||||
grep -Pi -e "^host ([^*]+)$" $HOME/.ssh/config | grep -v -e "#.sshfs";
|
||||
grep -Pi -e "^host ([^*]+)$" -h $HOME/.ssh/config $HOME/.ssh/config.d/* 2>/dev/null | grep -e "#.sshfs";
|
||||
grep -Pi -e "^host ([^*]+)$" -h $HOME/.ssh/config $HOME/.ssh/config.d/* 2>/dev/null | grep -v -e "#.sshfs";
|
||||
} | awk '{ print $2 }' | tr ' ' '\n' | grep -vie "^host$" -e "*" -e "^$";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user