2 Commits

Author SHA1 Message Date
GS
9ea667f201 Better Scriptability by Removing Unnecessary Comma in List Output 2017-11-21 21:24:24 +01:00
2c8f072499 Merge pull request #3 from GHPS/master
Added Python 3.x support
2017-11-20 09:57:30 +03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ def CMDConnect(aliases, command=False):
def CMDList(option, opt, value, parser):
print(', '.join(str(p) for p in conf.sections()))
print(' '.join(str(p) for p in conf.sections()))
def CMDFullList(option, opt, value, parser):

View File

@@ -2,7 +2,7 @@ _sshch_complete()
{
local cur_word alias_list
cur_word="${COMP_WORDS[COMP_CWORD]}"
alias_list=`sshch -l | sed 's/,//g'`
alias_list=`sshch -l`
COMPREPLY=($(compgen -W "$alias_list" -- $cur_word))
return 0
}