Skip to content

Commit

Permalink
feat(ssh): change ssh tab name to SSH(user@ip:port)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg committed Oct 28, 2021
1 parent d969cf8 commit 93d8a15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/SpaceVim/layers/ssh.vim
Expand Up @@ -48,6 +48,10 @@ function! SpaceVim#layers#ssh#set_variable(opt) abort
endfunction

function! SpaceVim#layers#ssh#connect() abort
" the ssh client should be opened on new tab
tabnew
" set the tab name to SSH(user@ip:port)
let t:_spacevim_tab_name = 'SSH(' . s:user . '@' . s:ip . ':' . s:port . ')'
if has('nvim')
call termopen([s:ssh, '-p', s:port, s:user . '@' . s:ip])
else
Expand Down

0 comments on commit 93d8a15

Please sign in to comment.