Skip to content

Commit

Permalink
Merge pull request #283 from trek10inc/fix/271-autocomplete-fish
Browse files Browse the repository at this point in the history
addresses awsume-autocomplete not working for fish shell
  • Loading branch information
mtskillman authored Dec 11, 2024
2 parents 84a0ff9 + 5f56654 commit 316ac97
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions awsume/configure/alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 316ac97

Please sign in to comment.