Skip to content

Commit 0aa1bad

Browse files
committed
Merge pull request #227 from uri/fish-append-alias-expansion-fix
Fixes command mode for fish
2 parents 932a36a + c858efd commit 0aa1bad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/output.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ def appendAliasExpansion():
170170
# despite documentation hinting otherwise.
171171
#
172172
# so here we must ask bash to turn on alias expansion.
173-
appendToFile("""
173+
shell = os.environ.get('SHELL')
174+
if 'fish' not in shell:
175+
appendToFile("""
174176
if type shopt > /dev/null; then
175177
shopt -s expand_aliases
176178
fi

0 commit comments

Comments
 (0)