diff --git a/darsync.py b/darsync.py index 0cb4703..817d9a8 100755 --- a/darsync.py +++ b/darsync.py @@ -176,6 +176,8 @@ def msg(id, lang='en', **kwargs): def complete_path(text, state): # Get the current input text line = readline.get_line_buffer() + # Expand any home folder tildes + line = os.path.expanduser(line) # Split the line into individual arguments args = line.split() # Get the last argument (the one being completed)