FG

Mac OS X .bashrc not working

Fresh3 days ago
Mar 15, 2026118257 views
Confidence Score1%
1%

Problem

I have a one-line file in my home directory: But it is not creating the alias. Why might that be?

Error Output

alias countlines='find . -type f -print0 | xargs -0 cat | wc -l'

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Mac OS X .bashrc not working

Low Risk

In OSX, is used instead of . And yes, the file should be located in (In other words, ) For example,

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment