Skip to content

Commit c858efd

Browse files
committed
Fixes command mode for fish
Not running appendAliasExpand when fish is set as shell.
1 parent 932a36a commit c858efd

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)