Skip to content

Commit 7c1384f

Browse files
committed
[asahi-fedora-support] fix bash completion
1 parent 39eaf82 commit 7c1384f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.zprofile.khan

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
3737

3838
# Enable autocompletion for git. Should use git-completion.zsh, but it seems problematic on mac
3939
autoload -Uz compinit && compinit
40-
if [ -f "$DIR/git-completion.bash" ]; then
40+
# Only source bash completion on macOS - Linux has native zsh git completion
41+
if [ "$(uname -s)" = "Darwin" ] && [ -f "$DIR/git-completion.bash" ]; then
4142
source "$DIR/git-completion.bash"
4243
fi
4344

0 commit comments

Comments
 (0)