diff --git a/README.md b/README.md index e391710..7228b97 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,12 @@ sshch -h ``` **If you want to use unsafe 'password' feature you must install 'sshpass' first.** -If you want to use bash autocompletion function with sshch, copy autocompletion script to /etc/bash_completion.d/: +- If you want to use bash autocompletion function with sshch, copy autocompletion script to /etc/bash_completion.d/: ``` sudo cp sshch_bash_completion.sh /etc/bash_completion.d/sshch ``` (changes will come into effect with new bash session) - -If you want to use zsh autocompletion: +- If you want to use zsh autocompletion: 1) Place File in a Directory where ZSH can find it -> Search Path is Stored in $fpath -> echo $fpath diff --git a/setup.py b/setup.py index 399f17f..12e4c2c 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def main(): url='https://github.com/zlaxy/sshch/', description='Ssh connection manager', license='DWTWL 2.5', - version='0.994', + version='0.995', py_modules=['sshch'], scripts=['sshch/sshch'], diff --git a/sshch/sshch b/sshch/sshch index b9dff69..e4074ac 100755 --- a/sshch/sshch +++ b/sshch/sshch @@ -20,7 +20,7 @@ import curses from curses import textpad, panel # https://github.com/zlaxy/sshch -version = "0.994" +version = "0.995" # path to conf file, default: ~/.config/sshch.conf conf_file = path.expanduser("~") + '/.config/sshch.conf' # expand groups by default @@ -682,6 +682,7 @@ def CursesMain(): if not len(selected) > 0: selected.append(strings[position - 1].split()[0].strip()) CursesConnect(screen, selected) + selected_strings = [" " for i in range(0, row_num + 1)] if (key_pressed == 32 or key_pressed == ( curses.KEY_IC)) and row_num != 0: if selected_strings[position] == ' ':