diff --git a/awsume/configure/alias.py b/awsume/configure/alias.py index b436082..ec8384d 100644 --- a/awsume/configure/alias.py +++ b/awsume/configure/alias.py @@ -3,8 +3,14 @@ DEFAULT_ALIAS = 'alias awsume="source awsume"' PYENV_ALIAS = r'alias awsume="source \$(pyenv which awsume)"' -PYENV_FISH_ALIAS = r'alias awsume="source (pyenv which awsume.fish)"' -FISH_ALIAS = r'alias awsume="source (which awsume.fish)"' +PYENV_FISH_ALIAS = """function awsume + source (pyenv which awsume.fish) $argv; +end +""" +FISH_ALIAS = """function awsume + source (which awsume.fish) $argv; +end +""" def main(shell: str, alias_file: str): alias_file = str(pathlib.Path(alias_file).expanduser())